From 495eab9d9bae0c23a9b914b4e58f68ebd90a3e29 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 21 Mar 2012 07:59:11 -0700 Subject: [PATCH] fix NPE --- .../android/XWords4/src/org/eehouse/android/xw4/NBSService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSService.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSService.java index 7d2c8598b..50d3788ce 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSService.java @@ -119,7 +119,7 @@ public class NBSService extends Service { public int onStartCommand( Intent intent, int flags, int startId ) { int result; - if ( XWApp.NBSSUPPORTED ) { + if ( XWApp.NBSSUPPORTED && null != intent ) { int cmd = intent.getIntExtra( CMD_STR, -1 ); switch( cmd ) { case HANDLE: