Commit ee930472 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

fixed NULL/0 bug

parent 03794e16
...@@ -13,6 +13,7 @@ import java.sql.ResultSet; ...@@ -13,6 +13,7 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Types; import java.sql.Types;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -1392,6 +1393,9 @@ public class SceneDatabase { ...@@ -1392,6 +1393,9 @@ public class SceneDatabase {
Integer[] ary; Integer[] ary;
if (job.statistics != null) { if (job.statistics != null) {
ary = new Integer[job.statistics.length]; ary = new Integer[job.statistics.length];
Arrays.fill(ary, 0);
if (job.statistics.length > 0) { if (job.statistics.length > 0) {
ary[0] = job.statistics[0]; ary[0] = job.statistics[0];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment