Null pointer execption

Seven 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.
Seven Stars

Re: Null pointer execption

yes @manodwhb

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads