well, it's telling you on which line you are using a variable that you haven't instantiated yet.
add a print right before it, so you can check which var it is, or add default values to your variables, that should help you out.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
line 142 reads: if(ft.id==ip[i].t.id)
so print every one of those values (including intermediates like ip[i].t) immediately before that line to see which is (are) null.
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
If the field is an Object then yes (unless null is a valid value for it). But if it's a primitive then no, because they all have default values (0 or false).
Looking at all the info you have provided so far I would suspect that ip[i] is null for some value of i
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
...is it possible to redirect in the program (java) when an exception occured...
Sorry, I don't understand the question. Can you expand/re-phrase it?
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073