Skip to content

Commit bc892fb

Browse files
committed
Some fixes
1 parent d61c909 commit bc892fb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/ml/anon/ui/management/DocumentOverviewView.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,17 @@ private void init() {
9191

9292

9393
}).withStyleName(ValoTheme.BUTTON_BORDERLESS))).setCaption("");
94-
grid.setItems(documentResource.findAll(-1));
94+
try {
95+
grid.setItems(documentResource.findAll(-1));
96+
} catch (Exception e) {
97+
log.severe(e.getLocalizedMessage());
98+
}
99+
95100

96101
grid.setSizeFull();
97102

98-
addComponent(new MVerticalLayout().add(new MLabel("Dokumentenmanagement").withStyleName(ValoTheme.LABEL_H2), 0.05f).add(buildUpload(documentResource), 0.1f).add(grid, 0.85f).withFullSize());
103+
addComponent(new MVerticalLayout().add(new MLabel("Dokumentenmanagement")
104+
.withStyleName(ValoTheme.LABEL_H2), 0.05f).add(buildUpload(documentResource), 0.1f).add(grid, 0.85f).withFullSize());
99105

100106
}
101107

0 commit comments

Comments
 (0)