Merge pull request #23 from andham/JENKINS-20027
[FIXED JENKINS-20027] Exception thrown when Dashboard View plugin is not...
This commit is contained in:
commit
7ee2284e05
|
@ -102,7 +102,7 @@ private void rss(StaplerRequest req, StaplerResponse rsp, String suffix, RunList
|
|||
|
||||
public static class DescriptorImpl extends Descriptor<DashboardPortlet> {
|
||||
|
||||
@Extension
|
||||
@Extension(optional = true)
|
||||
public static DescriptorImpl newInstance() {
|
||||
if (Hudson.getInstance().getPlugin("dashboard-view") != null) {
|
||||
return new DescriptorImpl();
|
||||
|
|
Loading…
Reference in New Issue