Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
I am newbie, so I'm sorry if the question is so basic 😉
I have an integer context variable called context.nb_lignes
In a tJava composant I would like to increment this variable as follows:
context.InfoGenerale_NB_Lignes = context.InfoGenerale_NB_Lignes + ((Integer)globalMap.get("tSalesforceOutput_2_NB_LINE"));
But Talend crashes again and again with the followingg message.
"Exception in component tJava_1
java.lang.NullPointerException
at parot_digital.jdintegsfc_ent_compte_alim_0_1.JdIntegSfc_ENT_COMPTE_Alim.tMysqlInput_1Process(JdIntegSfc_ENT_COMPTE_Alim.java:6073)
at ..."
Any ideas about what I am doing wrong?
Thanks in advance
context.setProperty("InfoGenerale_NB_Lignes", context.InfoGenerale_NB_Lignes + ((Integer)globalMap.get("tSalesforceOutput_2_NB_LINE")))