Skip to content

Commit

Permalink
Fix NSBundle stub restore
Browse files Browse the repository at this point in the history
`-[NSBundle pathForResource:ofType]` behaviour is different from my guess...
  • Loading branch information
soutaro committed Jun 22, 2016
1 parent e433a93 commit 6af308e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Obihiro/NSBundle+OBH.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ @implementation NSBundle (OBH)

+ (void)setMessageLocalizationLocale:(NSString *)localeString {
NSString *path = [[NSBundle mainBundle] pathForResource:localeString ofType:@"lproj"];
if (path) {
if (localeString && path) {
OBHLocalizedBundle = [NSBundle bundleWithPath:path];
} else {
OBHLocalizedBundle = nil;
Expand Down

0 comments on commit 6af308e

Please sign in to comment.