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;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -1392,6 +1393,9 @@ public class SceneDatabase {
Integer[] ary;
if (job.statistics != null) {
ary = new Integer[job.statistics.length];
Arrays.fill(ary, 0);
if (job.statistics.length > 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