Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

보내는 사람 번호가 없을 때 문자가 오면 프로그램이 크래시 되는 문제 수정.

  • Loading branch information...
commit 30e3820583d358a3f1098737c35eeeed835b5b56 1 parent 1981823
@BenjaminKim BenjaminKim authored
View
0  screenshot/�׷����̹���.png → screenshot/±×·¡ÇÈÀ̹ÌÁö.png
File renamed without changes
View
BIN  screenshot/�׷����̹���.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 src/beonit/NaverMoneySync/SmsReceiver.java
@@ -61,7 +61,13 @@ public void onReceive(Context context, Intent intent) {
for( SmsMessage msg : messages ) {
// 전화번호에서 숫자만 뽑아온다.
numStr = new StringBuffer();
- String addr = new String( msg.getDisplayOriginatingAddress() );
+ String displayOriginatingAddress = msg.getDisplayOriginatingAddress();
+ if (displayOriginatingAddress == null)
+ {
+ // There is no caller id. In this case, we don't try to parse the message anymore.
+ continue;
+ }
+ String addr = new String(displayOriginatingAddress);
for( char c : addr.toCharArray() )
if( Character.isDigit(c) )
numStr.append(c);
Please sign in to comment.
Something went wrong with that request. Please try again.