Fix: Android Null Pointer Exception
February 26th, 2011
For a while, the error message while compiling the android app gave me the following error:
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Client.java:572)
at com.android.ddmlib.HandleHello.sendHELO(srcfile.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(srcfile.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:671)
at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
The app runs fine, but it is annoying to see the DDMS error message. Finally, today find a fix. It is a simple fix too…
In the AVD, enter some value to the SD Card size. Then the problem goes away…

Now I am happy…