thanawat158 / mixare

Automatically exported from code.google.com/p/mixare
0 stars 0 forks source link

Going back to mixare listview is causing a force close #137

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please use labels and text to provide additional information.
E/AndroidRuntime(11774): FATAL EXCEPTION: main
E/AndroidRuntime(11774): java.lang.RuntimeException: Unable to start activity 
ComponentInfo{org.mixare/org.mixare.MixListView}: java.lang.NullPointerException
E/AndroidRuntime(11774):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768)
E/AndroidRuntime(11774):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
E/AndroidRuntime(11774):    at 
android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/AndroidRuntime(11774):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/AndroidRuntime(11774):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(11774):    at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(11774):    at 
android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime(11774):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(11774):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(11774):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/AndroidRuntime(11774):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/AndroidRuntime(11774):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(11774): Caused by: java.lang.NullPointerException
E/AndroidRuntime(11774):    at 
org.mixare.MixListView.onCreate(MixListView.java:90)
E/AndroidRuntime(11774):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(11774):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/AndroidRuntime(11774):    ... 11 more

Original issue reported on code.google.com by daniele.gobbetti on 27 Jun 2012 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by daniele.gobbetti on 27 Jun 2012 at 8:32

GoogleCodeExporter commented 8 years ago
To reproduce, follow a link in listview that will cause the browser to be 
launched, then use the back button to go back to mixare.

Original comment by daniele.gobbetti on 27 Jun 2012 at 8:33

GoogleCodeExporter commented 8 years ago
Hi Daniele,

I think this has been already fixed,
and the fix on the development branch.

I tried to reproduce the issue, with the current development and I wasn't able 
to see the error.

In anycase, this is caused by "dead cycle" in dataView and MixContext, where is 
stored in MixView, mapView and listView; where MapView and ListView barely uses 
dataView.

I'm working on workFlow branch which should loose some of the coupling and 
document the code for future developers.

if the "mixare/development" has this issue too,
please add these lines in MixListView#onCreate() after super.onCreate()
Throwable tr = new Throwable();
Log.i("Mixare - Issue 137", "Intent= " + this.getIntent().getAction(), tr);

Regards,

Original comment by DevBinn...@gmail.com on 27 Jun 2012 at 5:48

GoogleCodeExporter commented 8 years ago

Original comment by klemens....@gmail.com on 7 Aug 2012 at 8:36