Fix NullPointerException in onUpEventInternal

This commit is contained in:
Aleksandras Kostarevas 2024-05-17 11:25:26 -05:00
parent dcce3ea5ae
commit 3208ab3050

View File

@ -1004,7 +1004,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
// Release the last pressed key.
setReleasedKeyGraphics(currentKey, true /* withAnimation */);
if(mCursorMoved && currentKey.getCode() == Constants.CODE_DELETE) {
if(mCursorMoved && currentKey != null && currentKey.getCode() == Constants.CODE_DELETE) {
sListener.onUpWithDeletePointerActive();
} else if(mCursorMoved) {
sListener.onUpWithPointerActive();