Skip to content

Commit

Permalink
Utils: getTalkUri(): Add a null check.
Browse files Browse the repository at this point in the history
Because this method is mentioned in an occasional crash that has a
confusing backtrace.
  • Loading branch information
murraycu committed Mar 16, 2017
1 parent ad12ec3 commit 793d942
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public static String getTranslationFilePath(final String language, final String

@NonNull
public static String getTalkUri(final String zooniverseId) {
if (zooniverseId == null) {
return null;
}

return Config.TALK_URI + zooniverseId;
}

Expand Down

0 comments on commit 793d942

Please sign in to comment.