Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException

 
ron mccarthy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am getting the above error when I try and use the jsapi interface, the I/O points the line as follows:

Any ideas???
Please???
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the very top line of the stack trace points to this line, it has to mean that "synth" is null -- it's never been initialized; unless the method you're calling is a native method, in which case, the problem could be with the parameters, or an internal fault. Are you sure you're allowed to pass "null" as the second argument? Are you sure the first parameter is non-null?
[ May 05, 2004: Message edited by: Ernest Friedman-Hill ]
 
ron mccarthy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have printed out the String parameter that is to be my first argument in that line, and it does contain data. The reason I have null as the second parameter in there is because from other code snippets and examples that I have seen. I am at a loss as to why this is a problem. I have the class in a package in my slasses folder in my netbeans, and it compiles just fine. Anyone else got any other ideas???
Please help me!!!
Neil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic