RedJocker / fix-PhotoEditor

0 stars 0 forks source link

stage1 nullPointer os tests line 82 #1

Closed RedJocker closed 2 years ago

RedJocker commented 2 years ago

found a null pointer bug on stageI tests line 82, proposed change on 83. null pointer happens if solution does not lauch intent

82        //val intent = shadowActivity!!.peekNextStartedActivityForResult().intent   // throws null pointer if no intent launched
83       val intent = shadowActivity.peekNextStartedActivityForResult()?.intent ?: throw AssertionError("Have you launched an intent?")
RedJocker commented 2 years ago

solved on fixTests branch