Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
krengan21
Creator
Creator

Null pointer execption

This is the error i am getting while running the job but i dont have any blank values.While converting from date to string format i am getting this error can somebody help me out in this.The error is as follows

 

java.lang.NullPointerException

at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1439)
at java.text.DateFormat.parse(DateFormat.java:364)
at routines.TalendDate.parseDate(TalendDate.java:881)
at routines.TalendDate.parseDate(TalendDate.java:839)
at testing.staging_population_2017_10_31_0_1.staging_population_2017_10_31.tMongoDBInput_3Process(staging_population_2017_10_31.java:6236)
at testing.staging_population_2017_10_31_0_1.staging_population_2017_10_31.tSetKeystore_2Process(staging_population_2017_10_31.java:16214)
at testing.staging_population_2017_10_31_0_1.staging_population_2017_10_31.runJobInTOS(staging_population_2017_10_31.java:16944)
at testing.staging_population_2017_10_31_0_1.staging_population_2017_10_31.main(staging_population_2017_10_31.java:16719)

Labels (3)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

first try to check not null value and then convert date to string.

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

first try to check not null value and then convert date to string.

manodwhb
Champion II
Champion II

@krengan21,did it help you?

krengan21
Creator
Creator
Author

yes @manodwhb