Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerException  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my program i don't have any errors while compiling but i am getting this error while compiling:

The program code is below starting from the line number 205 as indicated in error
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't initialized find.
 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
now i have initialized find but i am getting the following


and the line given error is 269. I have used >>>>>>and<<<<<<<to denote it below

 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error is telling you just what you need for trouble shooting. It says that a component you have tried to add is null. That leaves the following possibilities:
- froll
- fname
- ftf
- ftf1
- find -- not this one, since you made sure of that already
- jsp

Check which one(s) of these you haven't initialized yet and this problem will disappear.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!