I have a NullPointerException that happens sometimes on the first line of this loop,
ViewResponse rows = this.client.query(view, query);
for (ViewRow row : rows)
PsekKboxReport report = (PsekKboxReport)JsonUtil.convertObject(row.getDocument().toString(), PsekKboxReport.class);
There are a bit too many method calls on this line, but I can rule out that JsonUtil is null because convertObject() is static.
I checked that convertObject(null,…) does not throw a NullPointer. That leaves only the possibility that row is null or row.getDocument() returns null.
How is this possible? Can it be avoided? How should I deal with it?