File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
exist-core/src/main/java/org/exist/client Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 76
76
import org .fife .ui .rtextarea .RTextScrollPane ;
77
77
import org .xmldb .api .base .Collection ;
78
78
import org .xmldb .api .base .CompiledExpression ;
79
+ import org .xmldb .api .base .ErrorCodes ;
79
80
import org .xmldb .api .base .Resource ;
80
81
import org .xmldb .api .base .ResourceIterator ;
81
82
import org .xmldb .api .base .ResourceSet ;
@@ -591,6 +592,10 @@ public void run() {
591
592
tResult = System .currentTimeMillis () - t1 ;
592
593
runningContext .set (null );
593
594
595
+ if (result == null ) {
596
+ throw new XMLDBException (ErrorCodes .UNKNOWN_ERROR , "Query returned 'null' which it should never do, this is likely a bug that should be reported" );
597
+ }
598
+
594
599
// jmfg: Is this still needed? I don't think so
595
600
writer = new StringWriter ();
596
601
service .dump (compiled , writer );
You can’t perform that action at this time.
0 commit comments