I copied this code exactly out of my parallel programming book. When I tried compiling it I go a nullpointerexception which seems to be happening at the code: t[i]=newThread(counters[i]); which accord
I spend about 2 hours trying to understand why my code keeps throwing runtime errors. It doesn\'t want to accept user inputs... I\'m pretty sure my implementaion of getext is correct. Could you guys t
i have this code: package com.rbrlnx.lugares; public class DataBaseHelper extends SQLiteOpenHelper { private static String DB_PATH = \"/data/data/com.rbrlnx.lugares/databases/\";
I have code to initialize my NFC adapter, but I am not sure how to intialize the varia开发者_开发百科bles during the onCreate. The app can be initialized whether an NFC TAG is in proximity or not, ie.
I have a problem with the view stub. This is the ViewStub in my java file ViewStub stub = (ViewStub) findViewById(R.id.stub1);
My develop environment is: netbeas7.01 + mysql5 + spring3 + struts2 + jpa2(hibernate3.6; When I Refactoring a old project,I got some trouble:there is a random“null point”error when I run the p
I\'ve recently developed a simple ajax search. The whole code in my server is using Struts, so I had to use a somewhat cumbersome way of programming. My main method retu开发者_StackOverflow社区rns an
I am making a java game and I am getting the following error: actionPerformedException in thread "AWT-EventQueue-0" java.lang.NullPointerException
I have a strange error (NullPointerException) ocurring sometimes while using gallery widget, it occurs only sometimes when scrolling fast in different directions - what is strange, there\'s none of my
Why do I get an NPE at Drawable pic = (Drawable) i.getDrawable();?????? I am trying to get the height and width of a drawable in order to set its scale to be fit the XY of an imageview in an imageswit