Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Does FXCollections have HashMap and NullPointerExceptions

 
Ranch Hand
Posts: 179
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for bother, just noticed that Map and therefore HashMap not part of FXCollections, I have changed HashMap to ObservableMap.
However I have a follow-on problem with NullPointerExceptions.  
I am missing something here.

Caused by: java.lang.NullPointerException
at application.utils.CheckCredential.checkCredential(CheckCredential.java:47)
at application.controller.tab.Tab1Controller.btnLoginClicked(Tab1Controller.java:55)
... 58 more





 
Rancher
Posts: 4304
47
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your userDetailMap is null at that point.
I don't see anywhere it is instantiated.
 
AhFai Chan
Ranch Hand
Posts: 179
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:Your userDetailMap is null at that point.
I don't see anywhere it is instantiated.



SHOOT! Adding this line made all the difference:

Thanks.
Today is Friday...
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!