fix findbugs
This commit is contained in:
parent
2fd7ce47b8
commit
31f8dc295b
4 changed files with 12 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
|||
<Bug pattern="REC_CATCH_EXCEPTION" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Package name="ch.ethz.seb.sebserver.gui.*" />
|
||||
<Package name="~ch\.ethz\.seb\.sebserver\.gui\..*" />
|
||||
<Bug pattern="SE_BAD_FIELD" />
|
||||
</Match>
|
||||
<Match>
|
||||
|
@ -32,7 +32,7 @@
|
|||
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Package name="ch.ethz.seb.sebserver.gui.service.page.FieldValidationError" />
|
||||
<Package name="ch.ethz.seb.sebserver.gui.service.page" />
|
||||
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
|
||||
</Match>
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class Indicator implements Entity {
|
|||
;
|
||||
|
||||
public final String name;
|
||||
public boolean integerValue;
|
||||
public final boolean integerValue;
|
||||
|
||||
private IndicatorType(final String name, final boolean integerValue) {
|
||||
this.name = name;
|
||||
|
|
|
@ -85,6 +85,9 @@ final class InstitutionalAuthenticationEntryPoint implements AuthenticationEntry
|
|||
|
||||
_defaultLogo = FileCopyUtils.copyToString(reader);
|
||||
|
||||
} catch (final IOException e) {
|
||||
log.warn("Failed to load default logo image from filesystem: {}", defaultLogoFileName);
|
||||
_defaultLogo = null;
|
||||
} catch (final Exception e) {
|
||||
log.warn("Failed to load default logo image from filesystem: {}", defaultLogoFileName);
|
||||
_defaultLogo = null;
|
||||
|
|
|
@ -315,7 +315,12 @@ public class ActivitiesPane implements TemplateComposer {
|
|||
.create());
|
||||
}
|
||||
|
||||
monitoring.setExpanded(this.currentUser.get().hasAnyRole(UserRole.EXAM_SUPPORTER));
|
||||
if (monitoring != null) {
|
||||
monitoring.setExpanded(
|
||||
this.currentUser
|
||||
.get()
|
||||
.hasAnyRole(UserRole.EXAM_SUPPORTER));
|
||||
}
|
||||
}
|
||||
|
||||
// ---- MONITORING ---------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue