ericberman / MyFlightbookAndroid

Android client app for MyFlightbook.com
http://myflightbook.com
GNU General Public License v3.0
21 stars 8 forks source link

Null flightproperty in cross-product. #131

Closed ericberman closed 5 years ago

ericberman commented 5 years ago

Can't quite figure out why this would ever happen. This is right after calling cross-product, which should never return null flight properties unless for some reason the list of custompropertytypes has some null elements.

java.lang.NullPointerException: Attempt to invoke virtual method 'Model.CustomPropertyType Model.FlightProperty.CustomPropertyType()' on a null object reference at com.myflightbook.android.ActNewFlight.setUpPropertiesForFlight(ActNewFlight.java:1778) at com.myflightbook.android.ActNewFlight.ToView(ActNewFlight.java:1283) at com.myflightbook.android.ActNewFlight.onResume(ActNewFlight.java:548) at android.support.v4.app.Fragment.performResume(Fragment.java:2390) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1474) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759) at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:792) at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2596) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2383) at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2338) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2245) at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:784) at com.myflightbook.android.MFBMain.onTabChanged(MFBMain.java:759) at android.widget.TabHost.invokeOnTabChangeListener(TabHost.java:444) at android.widget.TabHost.setCurrentTab(TabHost.java:429) at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:181) at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:695) at android.view.View.performClick(View.java:6205) at android.view.View$PerformClick.run(View.java:23653) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6682) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1534) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1424) Attempt to invoke virtual method 'Model.CustomPropertyType Model.FlightProperty.CustomPropertyType()' on a null object referenceAttempt to invoke virtual method 'Model.CustomPropertyType Model.FlightProperty.CustomPropertyType()' on a null object reference