java.lang.RuntimeException: Unable to start activity ComponentInfo{com.supermap.uavsurvey/com.supermap.uavsurvey.activitys.StartActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.FileInputStream.close()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3802) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3948) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2402) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.app.ActivityThread.main(ActivityThread.java:8143) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.FileInputStream.close()' on a null object reference at com.supermap.data.Environment.readFile(Environment.java:2310) at com.supermap.data.Environment.checkDevice_New(Environment.java:828) at com.supermap.data.Environment.initialization(Environment.java:630) at com.supermap.uavsurvey.activitys.StartActivity.onCreate(StartActivity.java:37) at android.app.Activity.performCreate(Activity.java:8508) at android.app.Activity.performCreate(Activity.java:8472) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3783) ... 12 more