mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
[FIXED JENKINS-33683] Clarify Action methods can return null
This commit is contained in:
1 parent
e4d7da6053
commit
eefafb2b38
7 files changed
+27
-17
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user