2019-04-28 11:36:19.834 31290-31290/com.gyf.immersionbar.simple E/EventBus: Could not dispatch event: class com.gyf.immersionbar.simple.event.NetworkEvent to subscribing class class com.gyf.immersionbar.simple.activity.MainActivity
java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1
at java.util.ArrayList.get(ArrayList.java:439)
at com.gyf.immersionbar.simple.activity.MainActivity.onNetworkEvent(MainActivity.java:433)
at java.lang.reflect.Method.invoke(Native Method)
at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:507)
at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:501)
at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6707)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
2019-04-28 11:36:19.834 31290-31290/com.gyf.immersionbar.simple E/EventBus: Could not dispatch event: class com.gyf.immersionbar.simple.event.NetworkEvent to subscribing class class com.gyf.immersionbar.simple.activity.MainActivity java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.gyf.immersionbar.simple.activity.MainActivity.onNetworkEvent(MainActivity.java:433) at java.lang.reflect.Method.invoke(Native Method) at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:507) at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:501) at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6707) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)