fix possible nullpointerexception on startup
authorgitknilch <gitknilch@cwde.de>
Sun, 24 Mar 2013 21:03:51 +0000 (22:03 +0100)
committergitknilch <gitknilch@cwde.de>
Sun, 24 Mar 2013 21:03:51 +0000 (22:03 +0100)
Change-Id: Id405a61584ae269408469c4b14fb5020b14c8030
Signed-off-by: gitknilch <gitknilch@cwde.de>
AndroidManifest.xml
src/de/cwde/freeshisen/ShisenSho.java

index 38ab475..cecb5ff 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="de.cwde.freeshisen"
-    android:versionCode="3"
-    android:versionName="0.1" >
+    android:versionCode="4"
+    android:versionName="0.2" >
 
     <uses-sdk
         android:minSdkVersion="5"
index f4ee58e..d926ff9 100644 (file)
@@ -101,7 +101,7 @@ public class ShisenSho extends Application {
                        needsReset = true;
                }
 
-               if (timeCounter != this.timeCounter) {
+               if ((timeCounter != this.timeCounter) && (view != null)) {
                        this.timeCounter = timeCounter;
                        view.onTimeCounterActivate();
                }
Impressum, Datenschutz