Skip to content

Commit

Permalink
#169: fixed npe when starting apm through camera-app
Browse files Browse the repository at this point in the history
  • Loading branch information
k3b committed Aug 3, 2020
1 parent b27bee9 commit 22e1413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void reload(String why) {
}

public int getCount() {
return mFullPhotoPaths.length;
return mFullPhotoPaths == null ? 0 : mFullPhotoPaths.length;
}

/** return null if no file array or illegal index */
Expand Down

0 comments on commit 22e1413

Please sign in to comment.