Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #480 from fzurita/null_profile_issue
Fixed crash when loading unknown profile
  • Loading branch information
xperia64 committed Oct 7, 2015
2 parents 0929d79 + 28c509f commit 2d4dc01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/paulscode/android/mupen64plusae/persistent/GamePrefs.java
Expand Up @@ -409,6 +409,8 @@ private static Profile loadProfile( SharedPreferences prefs, String key, String
return null;
else if( custom.keySet().contains( name ) )
return new Profile( false, custom.get( name ) );
else if( custom.keySet().contains( defaultName ) )
return new Profile( false, custom.get( defaultName ) );
else if( builtin.keySet().contains( name ) )
return new Profile( true, builtin.get( name ) );
else if( builtin.keySet().contains( defaultName ) )
Expand Down

0 comments on commit 2d4dc01

Please sign in to comment.