Skip to content
Permalink
Browse files
[JENKINS-31162] Another (part III) @jglick's comments were addressed
  • Loading branch information
recena committed Mar 21, 2016
1 parent 5c10e57 commit eb78face60e2dc76c9beafeeb6f846341843409c
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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.
@@ -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);
}
@@ -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 {

0 comments on commit eb78fac

Please sign in to comment.