Crash on device orientation change in account properties (#221)
Artur Hefczyc opened 7 years ago

I have got app crash on device orientation change when editing account properties.

Bartosz MaƂkowski commented 6 years ago
	08-20 13:09:14.333 27913-27913/org.tigase.messenger.phone.pro E/AndroidRuntime: FATAL EXCEPTION: main
		Process: org.tigase.messenger.phone.pro, PID: 27913
		java.lang.RuntimeException: Unable to start activity ComponentInfo{org.tigase.messenger.phone.pro/org.tigase.messenger.phone.pro.account.AccountProperties}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.accounts.Account.name' on a null object reference
			at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
			at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
			at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4720)
			at android.app.ActivityThread.-wrap20(ActivityThread.java)
			at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1573)
			at android.os.Handler.dispatchMessage(Handler.java:105)
			at android.os.Looper.loop(Looper.java:156)
			at android.app.ActivityThread.main(ActivityThread.java:6523)
			at java.lang.reflect.Method.invoke(Native Method)
			at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
			at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
		 Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.accounts.Account.name' on a null object reference
			at org.tigase.messenger.phone.pro.settings.AccountCat.setAccount(AccountCat.java:61)
			at org.tigase.messenger.phone.pro.account.AccountProperties$AccountPropertiesFragment.onCreate(AccountProperties.java:291)
			at android.app.Fragment.performCreate(Fragment.java:2342)
			at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:952)
			at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1178)
			at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1160)
			at android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:2041)
			at android.app.FragmentController.dispatchCreate(FragmentController.java:165)
			at android.app.Activity.onCreate(Activity.java:1007)
			at android.preference.PreferenceActivity.onCreate(PreferenceActivity.java:536)
			at org.tigase.messenger.phone.pro.settings.AppCompatPreferenceActivity.onCreate(AppCompatPreferenceActivity.java:84)
			at org.tigase.messenger.phone.pro.account.AccountProperties.onCreate(AccountProperties.java:87)
			at android.app.Activity.performCreate(Activity.java:6915)
			at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
			at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
			at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864) 
			at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4720) 
			at android.app.ActivityThread.-wrap20(ActivityThread.java) 
			at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1573) 
			at android.os.Handler.dispatchMessage(Handler.java:105) 
			at android.os.Looper.loop(Looper.java:156) 
			at android.app.ActivityThread.main(ActivityThread.java:6523) 
			at java.lang.reflect.Method.invoke(Native Method) 
			at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) 
			at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) 
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
5806
Version
3.0.0
Spent time
4h
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/stork#221
Please wait...
Page is in error, reload to recover