java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

GitHub | relan | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NPE on keys importing

    GitHub | 6 months ago | relan
    java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

      at org.kontalk.util.MessageUtils.sha1()
    2. org.kontalk.util
      MessageUtils.sha1
      1. org.kontalk.util.MessageUtils.sha1(MessageUtils.java:206)
      1 frame
    3. org.kontalk.ui
      NumberValidation$6.onInput
      1. org.kontalk.ui.NumberValidation.startImport(NumberValidation.java:763)
      2. org.kontalk.ui.NumberValidation.access$400(NumberValidation.java:113)
      3. org.kontalk.ui.NumberValidation$6.onInput(NumberValidation.java:673)
      3 frames
    4. com.afollestad.materialdialogs
      MaterialDialog.onClick
      1. com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:370)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5204)
      2. android.view.View$PerformClick.run(View.java:21153)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:5417)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames