Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.8.0
Description
In SentryShellHive.java there is the following code:
public static void main(String[] args) throws Exception { SentryShellHive sentryShell = new SentryShellHive(); try { sentryShell.executeShell(args); } catch (Exception e) { LOGGER.error(e.getMessage(), e); Throwable current = e; // find the first printable message; while (current != null && current.getMessage() == null) { current = current.getCause(); } // current can be null here System.out.println("The operation failed." + (current.getMessage() == null ? "" : " Message: " + current.getMessage())); } }
Note that current can be null when we call getMessage()
Attachments
Attachments
Issue Links
- links to