GitHub user deem0n opened a pull request: https://github.com/apache/incubator-hawq/pull/1329
fix logging issue with null Metadata When you enable DEBUG logging you might get annoying exceptions: ``` SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.NullPointerException at java.lang.String.<init>(String.java:566) at org.apache.hawq.pxf.service.FragmentsResponseFormatter.printList(FragmentsResponseFormatter.java:147) at org.apache.hawq.pxf.service.FragmentsResponseFormatter.formatResponse(FragmentsResponseFormatter.java:54) at org.apache.hawq.pxf.service.rest.FragmenterResource.getFragments(FragmenterResource.java:88) ``` I just added the trivial fix. You can merge this pull request into a Git repository by running: $ git pull https://github.com/deem0n/incubator-hawq master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/1329.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1329 ---- commit 2f731a310d945f0422d274f687f16f8d381456aa Author: deem0n <dima@...> Date: 2018-01-13T08:49:55Z fix logging issue with null Metadata When you enable DEBUG logging you might get annoying exceptions: ``` SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.NullPointerException at java.lang.String.<init>(String.java:566) at org.apache.hawq.pxf.service.FragmentsResponseFormatter.printList(FragmentsResponseFormatter.java:147) at org.apache.hawq.pxf.service.FragmentsResponseFormatter.formatResponse(FragmentsResponseFormatter.java:54) at org.apache.hawq.pxf.service.rest.FragmenterResource.getFragments(FragmenterResource.java:88) ``` I just added the trivial fix. ---- ---