mbien commented on code in PR #4387:
URL: https://github.com/apache/netbeans/pull/4387#discussion_r922702885
##########
extide/gradle/src/org/netbeans/modules/gradle/GradleReport.java:
##########
@@ -51,7 +51,7 @@ public GradleReport(String errorClass, String location, int
line, String message
}
public static GradleReport simple(Path script, String message) {
- return new GradleReport(null, script.toString(), -1, message, null);
+ return new GradleReport(null, script != null ? script.toString() :
null, -1, message, null);
Review Comment:
nitpick: there is a `Objects.toString(obj)` util for exactly this usecase ;)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists