Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-31162] Another (part III) @jglick's comments were addressed
  • Loading branch information
recena committed Mar 21, 2016
1 parent 5c10e57 commit eb78fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/hudson/model/TopLevelItemDescriptor.java
Expand Up @@ -40,6 +40,7 @@
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import java.io.StringWriter;
import java.util.logging.Logger;

/**
* {@link Descriptor} for {@link TopLevelItem}s.
Expand All @@ -48,6 +49,8 @@
*/
public abstract class TopLevelItemDescriptor extends Descriptor<TopLevelItem> {

static final Logger LOGGER = Logger.getLogger(TopLevelItemDescriptor.class.getName());

protected TopLevelItemDescriptor(Class<? extends TopLevelItem> clazz) {
super(clazz);
}
Expand Down Expand Up @@ -154,6 +157,7 @@ public String getDescription() {
dsi.invokeScript(Stapler.getCurrentRequest(), Stapler.getCurrentResponse(), s, this, xml);
return sw.toString();
} catch (Exception e) {
LOGGER.warning(e.getMessage());
return "";
}
} else {
Expand Down

0 comments on commit eb78fac

Please sign in to comment.