Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Gene Taylor   on Sep 22 In Java Category.

  
Question Answered By: Sally Pierce   on Sep 22

> I get a NullPointerException and a lot of crap coming
> up during runtime and there is not way (as far as I
> can see) to get around it. How do I do it?
Without seeing your code nobody can help you with specifics...

What you can do is catch the exception  like this:

void foo (int foobar) // put in YOUR method info...
{
try
{
//your problem code in here
}
catch (Exception e)
{
System.out.println(e);
}
}

Other than that, pin point the location in the code where the error occurs and
post that part...

Share: