File tree Expand file tree Collapse file tree
exist-core/src/main/java/org/exist/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676import org .fife .ui .rtextarea .RTextScrollPane ;
7777import org .xmldb .api .base .Collection ;
7878import org .xmldb .api .base .CompiledExpression ;
79+ import org .xmldb .api .base .ErrorCodes ;
7980import org .xmldb .api .base .Resource ;
8081import org .xmldb .api .base .ResourceIterator ;
8182import org .xmldb .api .base .ResourceSet ;
@@ -591,6 +592,10 @@ public void run() {
591592 tResult = System .currentTimeMillis () - t1 ;
592593 runningContext .set (null );
593594
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+
594599 // jmfg: Is this still needed? I don't think so
595600 writer = new StringWriter ();
596601 service .dump (compiled , writer );
You can’t perform that action at this time.
0 commit comments