[FIXED JENKINS-33683] Clarify Action methods can return null

This commit is contained in:
Oliver Gondža committed 2016-03-21 10:33:58 +01:00
1 parent e4d7da6053
commit eefafb2b38
7 files changed
+27 -17

No files matched your search

+1 -1
View File
@@ -1540,7 +1540,7 @@ public class Functions {
*/
public static String getActionUrl(String itUrl,Action action) {
String urlName = action.getUrlName();
if(urlName==null) return null; // to avoid NPE and fail to render the whole page
if(urlName==null) return null; // Should not be displayed
try {
if (new URI(urlName).isAbsolute()) {
return urlName;