IDEMPIERE-5556 GL Journal Callout Error of NPE When new GL Journal Line create (#1652)

Co-authored-by: jpiere <h.hagiwara@compiere-distribution-lab.net>
This commit is contained in:
HideakiHagiwara 2023-01-29 19:13:49 +09:00 committed by GitHub
parent 683b7a8097
commit cc03f09a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -160,8 +160,12 @@ public class CalloutGLJournal extends CalloutEngine
// Source info // Source info
Integer Currency_ID = (Integer)mTab.getValue("C_Currency_ID"); Integer Currency_ID = (Integer)mTab.getValue("C_Currency_ID");
if(Currency_ID == null)
return "";
int C_Currency_ID = Currency_ID.intValue(); int C_Currency_ID = Currency_ID.intValue();
Integer ConversionType_ID = (Integer)mTab.getValue("C_ConversionType_ID"); Integer ConversionType_ID = (Integer)mTab.getValue("C_ConversionType_ID");
if(ConversionType_ID == null)
return "";
int C_ConversionType_ID = ConversionType_ID.intValue(); int C_ConversionType_ID = ConversionType_ID.intValue();
Timestamp DateAcct = (Timestamp)mTab.getValue("DateAcct"); Timestamp DateAcct = (Timestamp)mTab.getValue("DateAcct");
if (DateAcct == null) if (DateAcct == null)