Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

null pointer exception

 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run the following code, I get this for output:
test2=after certifications
dates=[Ljava.lang.String;@116ab8
test1=beginning
alumniID=532797326
before calling certs=certs
error=java.lang.NullPointerException
before calling skills=sk
test3=after dates


If I comment out any references to req that occur after calling writeSkills, the program works. It seems that somewhere req is being set to null. Is there anything that I am missing?
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem. I was not accounting for getParameterValues returning null.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic