Run main project error

I'm using netbeans but i do not get any compiling errors just a error when i build my project.java.lang.NullPointerExceptionat Flights.<init>(Flights.java:25)at Flights.main(Flights.java:29)Exception in thread "main" Java Result: 1
[280 byte] By [rickywooa] at [2007-10-1 21:51:27]
# 1

That is an error that occurs when you run the program. To find what the error is, find the exception class named NullPointerException in the java.lang API documentation. It says:

"NullPointerException extends RuntimeException

Thrown when an application attempts to use null in a case where an object is required. These include:

Calling the instance method of a null object.

Accessing or modifying the field of a null object.

Taking the length of null as if it were an array.

Accessing or modifying the slots of null as if it were an array.

Throwing null as if it were a Throwable value"

The rest of the error message tells you where the problems is happening - at line 25 of the main method in the program Flights.

Often caused by using an array index that is too large (trying to index beyond the end of the array). Bottom line, an object was expected, but a null was found.

ChuckBinga at 2007-7-13 7:54:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...