I have same error. In my case beside options menu I have Drawer menu with
custom DialogFragment.
If I disable my custom dialog inflating, NullPointerError disappears.
private class DrawerItemClickListener implements android.widget.AdapterView.
OnItemClickListener {
@Override
public void onItemClick(AdapterView parent, View view, int position, long
id) {
if (position >= 10) {
openPopupInfo(position);
} else {
selectItem(position);
}
}
}
private void openPopupInfo(int position) {
switch (position){
case 11:
if (sidebarInfo != null) {
MoneyExchangeDialogFragment dialog = MoneyExchangeDialogFragment.
newInstance(sidebarInfo.getCurrency());
dialog.show(getSupportFragmentManager(), "dialog");
Toast.makeText(MainActivity.this, "Open Exchange Popup", Toast.LENGTH_SHORT
).show();
}
}
}
On Sunday, June 8, 2014 at 11:08:50 AM UTC+6, Shai Almog wrote:
>
> It seems we have a race condition in the implementation layer. We're
> looking into this.
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/4247479e-c863-4acd-b6d9-779e216b9231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.