Null pointer execption

Highlighted
Eight Stars

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)


Accepted Solutions
Forteen Stars

Re: Null pointer execption

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

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

All Replies
Forteen Stars

Re: Null pointer execption

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

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Forteen Stars

Re: Null pointer execption

@krengan21,did it help you?

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Eight Stars

Re: Null pointer execption

yes @manodwhb

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now