Skip to content

Commit f075e62

Browse files
authored
1 parent 5cf413b commit f075e62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Ports/Android/src/com/codename1/impl/android/AndroidAsyncView.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ public void run() {
409409
pendingRenderingOperations = tmp;
410410
try {
411411
for (AsyncOp o : renderingOperations) {
412-
o.prepare();
412+
// can happen due to synchronization issues see: https://www.reddit.com/r/cn1/comments/1oo43in/error_while_using_app/
413+
if (o != null) {
414+
o.prepare();
415+
}
413416
}
414417
} catch (java.util.ConcurrentModificationException ex) {
415418
// This is a race condition that sometimes occurs

0 commit comments

Comments
 (0)