Skip to content

Commit

Permalink
Fixed crash on search
Browse files Browse the repository at this point in the history
  • Loading branch information
hissingpanda committed Feb 8, 2016
1 parent 62d8238 commit 3378bb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/org/refugerestrooms/models/Bathroom.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public String getNameDecoded() {
* if that is changed/fixed.
******************************************************************************************/
String mNameDecoded = mName;
mNameDecoded = decodeString(mNameDecoded);
if (mNameDecoded != null) {
mNameDecoded = decodeString(mNameDecoded);
}
return mNameDecoded;
}
// Needed to create separate variable for InfoViewFragment
Expand Down Expand Up @@ -140,4 +142,4 @@ private String decodeString(String string) {
return string;
}

}
}

0 comments on commit 3378bb6

Please sign in to comment.