File tree Expand file tree Collapse file tree
src/main/java/com/teragrep/pth_10/executor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,16 @@ public DPLExecutorResult interpret(
180180 while (exception .getCause () != null ) {
181181 exception = exception .getCause ();
182182 }
183- return new DPLExecutorResultImpl (DPLExecutorResult .Code .ERROR , exception .getMessage ());
183+
184+ final String message ;
185+ if (exception .getMessage () == null ) {
186+ message = "" ;
187+ }
188+ else {
189+ message = exception .getMessage ();
190+ }
191+
192+ return new DPLExecutorResultImpl (DPLExecutorResult .Code .ERROR , message );
184193 }
185194
186195 LOGGER .debug ("queryId <{}> Checking if aggregates are used" , queryId );
@@ -236,7 +245,16 @@ public DPLExecutorResult interpret(
236245 while (exception .getCause () != null ) {
237246 exception = exception .getCause ();
238247 }
239- return new DPLExecutorResultImpl (DPLExecutorResult .Code .ERROR , exception .getMessage ());
248+
249+ final String message ;
250+ if (exception .getMessage () == null ) {
251+ message = "" ;
252+ }
253+ else {
254+ message = exception .getMessage ();
255+ }
256+
257+ return new DPLExecutorResultImpl (DPLExecutorResult .Code .ERROR , message );
240258 }
241259
242260 LOGGER .debug ("queryId <{}> Returning from interpret()" , queryId );
You can’t perform that action at this time.
0 commit comments