java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.nekocode.camerafilter.filter.CameraFilter.onAttach()' on a null object reference

GitHub | ArtemSel | 4 months ago
  1. 0

    GitHub comment 5#250603973

    GitHub | 4 months ago | ArtemSel
    java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.nekocode.camerafilter.filter.CameraFilter.onAttach()' on a null object reference
  2. 0
    Use 'dialog' to access views from custom_layout layout.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void cn.nekocode.camerafilter.filter.CameraFilter.onAttach()' on a null object reference

      at cn.nekocode.camerafilter.CameraRenderer.setSelectedFilter()
    2. cn.nekocode.camerafilter
      MainActivity$1.onTouch
      1. cn.nekocode.camerafilter.CameraRenderer.setSelectedFilter(CameraRenderer.java:128)
      2. cn.nekocode.camerafilter.MainActivity$1.onTouch(MainActivity.java:94)
      2 frames
    3. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java)
      13 frames
    4. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java)
      2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java)
      2 frames
    5. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java)
      1 frame
    6. Android v7
      WindowCallbackWrapper.dispatchTouchEvent
      1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)
      1 frame
    7. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java)
      19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java)
      20. android.os.MessageQueue.nativePollOnce(Native Method)
      21. android.os.MessageQueue.next(MessageQueue.java)
      22. android.os.Looper.loop(Looper.java)
      23. android.app.ActivityThread.main(ActivityThread.java)
      23 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
      2 frames