java.lang.NullPointerException: lock == null

Stack Overflow | user2121 | 7 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

    BufferedReader causes NPE

    Stack Overflow | 7 months ago | user2121
    java.lang.NullPointerException: lock == null
  2. 0

    Why can't filereader find my file?

    Stack Overflow | 3 months ago | Johnny
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test.testassigment/com.example.test.testassigment.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Asmack File Transfer Error

    Stack Overflow | 12 months ago | user914425
    java.lang.NullPointerException: Attempt to invoke virtual method 'void org.jivesoftware.smackx.ServiceDiscoveryManager.addFeature(java.lang.String)' on a null object reference 04-01 19:05:13.534: E/AndroidRuntime(18510): at org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.setServiceEnabled(FileTransferNegotiator.java:126) 04-01 19:05:13.534: E/AndroidRuntime(18510): at com.demo.chat.DemoActivity.sendFileNew(XMPPChatDemoActivity.java:771) 04-01 19:05:13.534: E/AndroidRuntime(18510): at com.demo.chat.DemoActivity.onOptionsItemSelected(XMPPChatDemoActivity.java:186)

    Root Cause Analysis

    1. java.lang.NullPointerException

      lock == null

      at java.io.Reader.<init>()
    2. Java RT
      BufferedReader.<init>
      1. java.io.Reader.<init>(Reader.java:64)
      2. java.io.BufferedReader.<init>(BufferedReader.java:107)
      3. java.io.BufferedReader.<init>(BufferedReader.java:95)
      3 frames
    3. com.example.com
      ActMain.onOptionsItemSelected
      1. com.example.com.ecoassistant_03.Populator.populate(Populator.java:38)
      2. com.example.com.ecoassistant_03.ActMain.onOptionsItemSelected(ActMain.java:1182)
      2 frames
    4. Android Platform
      Activity.onMenuItemSelected
      1. android.app.Activity.onMenuItemSelected(Activity.java:3205)
      1 frame