Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

nullPointerException  RSS feed

 
Bron Czimes
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry I know this is potentially a basic question but this error is confusing me.
to put it in simple terms, i am creating a web application that connects to an Access database. it connects to the database perfectly, but seems to chuck a spak when it comes to formatting dates.
i have a page that accesses the database to show the items of a table within the database but not full details of each of the items. an option is given to the user to select an item to view its full details. when the user clicks on the item, i get this error....



this is the code for the javabean that is being processed (FlightBean).


what does this error mean? I know that null pointer exceptions are when something is not initialised properly or there is an issue with a null value somewhere, but this particular one I do not understand. can anyone help me?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.mycompany.FlightBean.getXML(FlightBean.java:139)
com.mycompany.viewFlight.doGet(viewFlight.java:82)


According to the error message, something on line 139 of FlightBean.java and/or line 82 of viewFlight.java is null, but you're using it as if it weren't.

What's going on at line 139 of FlightBean.java and line 82 of viewFlight.java?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Beginners forum...
 
Bron Czimes
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I worked it out...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear it.

What did you figure out? Did those line numbers from the error message help?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!