Skip to content

Commit

Permalink
Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed Nov 4, 2017
1 parent 8928201 commit 372313d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/net/orgizm/imgshr/ShareActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void onCreate(Bundle savedInstanceState)
private String getSlug(String slugOrName) {
Gallery gallery = null;
for (Gallery g : preferences.getGalleries()) {
if (g.getName().equals(slugOrName)) {
if (g.getName() != null && g.getName().equals(slugOrName)) {
gallery = g;
}
}
Expand Down

0 comments on commit 372313d

Please sign in to comment.