Skip to content
Permalink
Browse files
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 2d4dc016d957833e53b8e3b0b3127bfa8b27f081
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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 ) )

0 comments on commit 2d4dc01

Please sign in to comment.