Skip to content

Commit 8f5a76f

Browse files
committed
Fix a rare NPE crash in Android 2.x
See http://crashes.to/s/5ee30776a5d
1 parent c866d2b commit 8f5a76f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AndroidAsync/src/com/koushikdutta/async/AsyncServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@ private static void runLoop(final AsyncServer server, final SelectorWrapper sele
727727
}
728728
}
729729
}
730+
catch (NullPointerException e) {
731+
throw new AsyncSelectorException(e);
732+
}
730733
catch (IOException e) {
731734
throw new AsyncSelectorException(e);
732735
}

0 commit comments

Comments
 (0)