question

Dan avatar image
Dan asked Dan commented

Orders app crashing on Flex emulator

As soon as I open the app on a flex emulator, I get the following error. It's particularly problematic because I have no local orders on the emulator now. Version is 1.0-1151.

Process: com.clover.orders, PID: 4006
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
        at com.clover.orders.OrderListFragment$OrdersCursorAdapter.bindView(OrderListFragment.java:1017)
        at com.clover.orders.OrderListFragment$OrdersCursorAdapter.newView(OrderListFragment.java:991)
        at android.widget.CursorAdapter.getView(CursorAdapter.java:250)
        at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220)
        at android.widget.AbsListView.obtainView(AbsListView.java:2347)
        at android.widget.ListView.makeAndAddView(ListView.java:1864)
        at android.widget.ListView.fillDown(ListView.java:698)
        at android.widget.ListView.fillSpecific(ListView.java:1356)
        at android.widget.ListView.layoutChildren(ListView.java:1651)
        at android.widget.AbsListView.onLayout(AbsListView.java:2151)
        at android.view.View.layout(View.java:15671)
        at android.view.ViewGroup.layout(ViewGroup.java:5038)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
        at android.view.View.layout(View.java:15671)
OrdersClover FlexEmulator
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered Dan commented

Yes that's a bug. I filed an internal issue to get it fixed. You'll need to run the app in landscape mode as a workaround.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks Jeff

0 Likes 0 ·

Welcome to the
Clover Developer Community