소스 검색

Fixes crash when button.title is undefined

yogevbd 7 년 전
부모
커밋
ce24fcdc67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/ios/RNNNavigationButtons.m

+ 1
- 1
lib/ios/RNNNavigationButtons.m 파일 보기

63
 
63
 
64
 -(RNNUIBarButtonItem*)buildButton: (NSDictionary*)dictionary defaultStyle:(RNNButtonOptions *)defaultStyle {
64
 -(RNNUIBarButtonItem*)buildButton: (NSDictionary*)dictionary defaultStyle:(RNNButtonOptions *)defaultStyle {
65
 	NSString* buttonId = dictionary[@"id"];
65
 	NSString* buttonId = dictionary[@"id"];
66
-	NSString* title = [self getValue:dictionary[@"text"] withDefault:defaultStyle.text];
66
+	NSString* title = [self getValue:dictionary[@"text"] withDefault:[defaultStyle.text getWithDefaultValue:@""]];
67
 	NSDictionary* component = dictionary[@"component"];
67
 	NSDictionary* component = dictionary[@"component"];
68
 	
68
 	
69
 	if (!buttonId) {
69
 	if (!buttonId) {