java.lang.NullPointerException

Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference


Solutions on the web21502

Solution icon of github
Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference

Solution icon of github
Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference

Solution icon of github
Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference

Solution icon of github
Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference

Solution icon of github
Attempt to invoke interface method 'void com.afollestad.materialdialogssample.ColorChooserDialog$Callback.onColorSelection(int, int, int)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Coelacanth
, 10 months ago
Attempt to invoke interface method 'void android.text.TextWatcher.beforeTextChanged(java.lang.CharSequence, int, int, int)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Sharanabasu Angadi
, 1 year ago
Attempt to invoke interface method 'void android.text.TextWatcher.beforeTextChanged(java.lang.CharSequence, int, int, int)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke interface method 'void com.badlogic.gdx.Screen.resize(int, int)' on a null object reference

Solution icon of web
Attempt to invoke interface method 'void cn.creable.gridgis.display.IDisplayTransformation.toMapPoint(int, int, cn.creable.gridgis.geometry.IPoint)' on a null object reference

Solution icon of github
via GitHub by aaryan1
, 3 months ago
Attempt to invoke interface method 'void com.jrummyapps.android.colorpicker.ColorPickerDialogListener.onColorSelected(int, int)' on a null object reference

Stack trace

  • java.lang.NullPointerException: Attempt to invoke interface method 'void xiaofei.library.hermeseventbus.IMainService.register(int, xiaofei.library.hermeseventbus.ISubService)' on a null object reference at xiaofei.library.hermeseventbus.HermesEventBus$HermesListener.onHermesConnected(HermesEventBus.java:288) at xiaofei.library.hermes.internal.Channel$HermesServiceConnection.onServiceConnected(Channel.java:284) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1264) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1281) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5917) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.