Skip to content
This repository was archived by the owner on Apr 26, 2020. It is now read-only.

Commit 5e7be4c

Browse files
committed
Fixed NPE
1 parent fa88854 commit 5e7be4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/de/dreier/mytargets/features/training/input/InputActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class InputActivity : ChildActivityBase(), TargetViewBase.OnEndFinishedListener,
318318
}
319319

320320
private fun updateEnd() {
321-
targetView!!.replaceWithEnd(data!!.currentEnd.toEnd())
321+
targetView?.replaceWithEnd(data!!.currentEnd.toEnd())
322322
val totalEnds = if (data!!.currentRound.round.maxEndCount == null)
323323
data!!.ends.size
324324
else

0 commit comments

Comments
 (0)