From 793d9423ed34dfcb47bee1d3f64eee28bcff3323 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Thu, 16 Mar 2017 09:43:19 +0100 Subject: [PATCH] Utils: getTalkUri(): Add a null check. Because this method is mentioned in an occasional crash that has a confusing backtrace. --- app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java b/app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java index e32017d6..11d1e06d 100644 --- a/app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java +++ b/app/src/main/java/com/murrayc/galaxyzoo/app/Utils.java @@ -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; }