This week's book giveaway is in the XML and Related Technologies forum.
We're giving away four copies of Java XML & JSON and have Jeff Friesen on-line!
See this thread for details.
Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!

Norm Radder

Rancher
+ Follow
since Aug 10, 2005
Worked mostly with IBM mainframe assembly code. Loved IBM's VM OS.
Eastern Florida
Cows and Likes
Cows
Total received
33
In last 30 days
0
Total given
1
Likes
Total received
330
Received in last 30 days
0
Total given
54
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Norm Radder

Sorry, I don't know about versions.  My Eclipse is several years old. It's in adt-bundle-windows-x86_64-20140702
I understand the newer versions don't support android development.
My AS is 3.2
1 month ago
Look at the contents of the array that was printed,  The last entry was null which means it was not assigned a value.  Look at the logic and see why there is an empty slot at the end of the array.
When the code loads the array, it needs to get one more value for the end of the array or the size of the array must be one less.
1 month ago
Make sure the assignment statement that gives a value to the array is executed.
 theArray = new DataType[size]

Make sure the statements that assign values to the slots in the array are executed.
theArray[index] = aValue



Where did you put the statement that prints the contents of the array?  It should be immediately before the statement (line 176) where the NPE happens
1 month ago
If the array variable is null, then check that the code that gives it a value is executed.
1 month ago
Too bad for me.  I was using the old view until a few hour ago and mistakenly pressed a wrong button.  Now I'm out in the cold.
It was fun while it lasted.

So long,
Norm
1 month ago
Print out the contents of the tagsList array to be sure it does not contain any null values.  Use the Arrays class's toString method:
1 month ago

 the output i provided is the exact output.


What java program are you using?  My java program does not have the same text as yours for a NPE.

Look at the variables on line 176 and find the one with the null value.  Then backtrack in the code to find out why that variable did not have a valid value.
1 month ago
I made the mistake of clicking on a button to change my view to the new view(which I hate).  I could not find a switch to restore the old view.  In trying various buttons, I pressed the "Mobile view" button.
Now I'm really stuck.  
How do I get out of Mobile view?   >>>> Found Desktop view and have gotten out of Mobile view
How do I restore the old view of the site?

Thanks,
Norm
1 month ago
Is that the exact output?  The message I get for a NPE looks like this:


Exception in thread "main" java.lang.NullPointerException
at TestCode25.main(TestCode25.java:339)


Notice the first line.
1 month ago
Please copy and post the full text of the error message, not just a few lines.
1 month ago

have a main method in my BooksTestDrive class


What class was given to the java command?  If the BooksTextDrive class has the main method that is used to start the program, pass it to the java command:
java BooksTestDrive
2 months ago

im still getting errors  


From which IDE? AS or Eclipse.  
I don't work with AS at all because of the headaches I get trying to get past its housekeeping.  I don't currently have any android projects, so until I find something I want to have, I'll probably not be doing any development.
2 months ago