Skip to content

Commit

Permalink
Merge PR #2832 by @flo - null hardening.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Mar 20, 2017
2 parents 7e3ba2c + e1f19d4 commit be82821
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public String getAsString(Prefab item) {

@Override
public Prefab getFromString(String representation) {
if (representation == null) {
return null;
}
return Assets.getPrefab(representation).orElse(null);
}
}

0 comments on commit be82821

Please sign in to comment.