Avoid NullPinterException.
https://sourceforge.net/tracker/?func=detail&atid=879334&aid=1869926&group_id=176962
This commit is contained in:
parent
f4ae71a961
commit
90771f9ef1
|
@ -803,14 +803,16 @@ public class ReportStarter implements ProcessCall, ClientProcess {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addProcessInfoParameters(Map<String, Object> params, ProcessInfoParameter[] para) {
|
private void addProcessInfoParameters(Map<String, Object> params, ProcessInfoParameter[] para) {
|
||||||
for (int i = 0; i < para.length; i++) {
|
if (para != null) {
|
||||||
if (para[i].getParameter_To() == null) {
|
for (int i = 0; i < para.length; i++) {
|
||||||
params.put(para[i].getParameterName(), para[i].getParameter());
|
if (para[i].getParameter_To() == null) {
|
||||||
} else {
|
params.put(para[i].getParameterName(), para[i].getParameter());
|
||||||
params.put( para[i].getParameterName()+"1", para[i].getParameter());
|
} else {
|
||||||
params.put( para[i].getParameterName()+"2", para[i].getParameter_To());
|
params.put( para[i].getParameterName()+"1", para[i].getParameter());
|
||||||
|
params.put( para[i].getParameterName()+"2", para[i].getParameter_To());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue