인한 이유 캐치되지 않는 예외 'NSInvalidArgumentException'에 '*** - [__ NSCFConstantString 을 stringByAppendingString :] :이 오류가 날 도와 점점 스피 전무 인수 ' ..인해 캐치되지 않는 예외 'NSInvalidArgumentException'응용 프로그램 종료, 이유는 : '*** - [__ NSCFConstantString stringByAppendingString :] : 무기 호 인수'응용 프로그램을 종료
- (IBAction)sendAction:(id)sender
{
if([_chatTextField.text length] > 0)
{
NSString* po = getUser.ofUser;
bubbleTable.typingBubble = NSBubbleTypingTypeNobody;
NSBubbleData *messageBubble = [NSBubbleData dataWithText:_chatTextField.text date:[NSDate dateWithTimeIntervalSinceNow:0] type:BubbleTypeMine];
[bubbleData addObject:messageBubble];
[bubbleTable reloadData];
[bubbleTable scrollBubbleViewToBottomAnimated:YES];
NSLog(@"getuserAccount:%@", getUser.account);
NSLog(@"TextField:%@", _chatTextField.text);
NSLog(@"Po:%@", po);
NSLog(@"UserID:%@", [NSString stringWithFormat:@"%ld", (long)getUser.Id]);
NSLog(@"chatMessageKey:%@", chatMessageKey);
[[QuoteMessageController SharedInstance] SendChatMessageTo:getUser.account withContent:_chatTextField.text toUserId:[NSString stringWithFormat:@"%ld", (long)getUser.Id] andOFId:po andVerifyKey:chatMessageKey];
}
//[self StopInteraction];
}
출력 스피 점점입니다 ..
이> userAccount:(null)
> 2015-01-12 19:09:26.050 SourceSage[6842:737878] TextField:haii
> 2015-01-12 19:09:26.051 SourceSage[6842:737878] Po:(null)
> 2015-01-12 19:09:26.052 SourceSage[6842:737878] UserID:0
> 2015-01-12 19:09:26.052 SourceSage[6842:737878] chatMessageKey:2365891
> 2015-01-12 19:09:44.240 SourceSage[6842:737878] dbPath:/var/mobile/Containers/Data/Application/C06E4910-88B7-46BF-A7A9-8FBDCDA44B67/Documents/Recipes/SourceSageDB.db
> 2015-01-12 19:09:44.264 SourceSage[6842:737878] dbPath:/var/mobile/Containers/Data/Application/C06E4910-88B7-46BF-A7A9-8FBDCDA44B67/Documents/Recipes/SourceSageDB.db
> 2015-01-12 19:09:44.273 SourceSage[6842:737878] *** Terminating app due to uncaught exception
> 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString
> stringByAppendingString:]: nil argument'
> *** First throw call stack:
> (0x2ce265f7 0x3a560c77 0x2ce2653d 0x2da749b3 0x1224b9 0xd2465 0x85569 0x302ff197 0x302ff139 0x302e9d1d 0x302feb69 0x302fe843
> 0x302f8151 0x302ce8c5 0x30542373 0x302cd307 0x2cdecfd7 0x2cdec3eb
> 0x2cdeaa69 0x2cd37b31 0x2cd37943 0x340f0051 0x3032d6f1 0x118fd9
> 0x3aafcaaf)
> libc++abi.dylib: terminating with uncaught exception of type NSException
> (lldb)
전체 스택 트레이스를 표시하는 방법이
nil
인수를 전달하고 있습니다. 또한 왜이 질문이 upvoted되었습니다; 그것은 잘 건설되지 않았고 다른 사람들을 돕지 않을 것입니까? – Droppy무엇을 의미합니까? –
코드가 충돌하는 곳을 알고 싶습니다. upvote 코멘트에 관해서는. 나는 그것이 왜 가난한 질문이기 때문에 upvoted되었는지 보지 못한다. 나는 공모를 의심한다. – Droppy