thoutbeckers / w.hen Goto Github PK
View Code? Open in Web Editor NEWFramework for conditional acts
License: Other
Framework for conditional acts
License: Other
EventHelper.onMenuItemSelected(MenuItem,Activity)
calls EventHelper.onMenuItemSelected(MenuItem,Activity, View)
with the View
as null
.
The following W.hen line:
W.hen(R.id.training_activities_workout).is(selected)
.then(publishActivityMode).withOnly(ActivityMode.WORKOUT);
results in a NPE in PublishEvent.post(Object)
, see stacktrace:
java.lang.RuntimeException: Could not dispatch event: class houtbecke.rs.when.robo.condition.event.MenuItemSelect to handler [EventHandler public void houtbecke.rs.when.robo.condition.Selected.onSelected(houtbecke.rs.when.robo.condition.event.MenuItemSelect)]
at com.squareup.otto.Bus.throwRuntimeException(Bus.java:456)
at com.squareup.otto.Bus.dispatch(Bus.java:386)
at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:367)
at com.squareup.otto.Bus.post(Bus.java:336)
at houtbecke.rs.when.robo.EventHelper.onMenuItemSelected(EventHelper.java:91)
at houtbecke.rs.when.robo.EventHelper.onMenuItemSelected(EventHelper.java:88)
at tacx.android.base.BaseActionBarActivity.onOptionsItemSelected(BaseActionBarActivity.java:98)
at android.app.Activity.onMenuItemSelected(Activity.java:2600)
at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:350)
at android.support.v7.app.ActionBarActivity.onMenuItemSelected(ActionBarActivity.java:155)
at android.support.v7.app.ActionBarActivityDelegate$1.onMenuItemSelected(ActionBarActivityDelegate.java:74)
at android.support.v7.widget.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:44)
at android.support.v7.internal.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:77)
at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:163)
at android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:738)
at android.support.v7.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:802)
at android.support.v7.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153)
at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:949)
at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:939)
at android.support.v7.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:187)
at android.widget.AdapterView.performItemClick(AdapterView.java:299)
at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:2911)
at android.widget.AbsListView$3.run(AbsListView.java:3645)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at houtbecke.rs.when.robo.act.PublishEvent.post(PublishEvent.java:84)
at houtbecke.rs.when.robo.act.PublishEvent.defaultAct(PublishEvent.java:69)
at houtbecke.rs.when.TypedAct.act(TypedAct.java:87)
at houtbecke.rs.when.WhenBuilder$GroupOfActsForThings.act(WhenBuilder.java:290)
EventHelper.onMenuItemSelected(MenuItem,Activity)
has been changed recently, it seems.
This allows for reliable order when declaring rules where a condition is used in several rules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.