We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2bfcaf + 7e7cbfb commit d903958Copy full SHA for d903958
app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/menu/SendToLogBookApp.java
@@ -45,8 +45,10 @@ public AppInstance create() {
45
if(selection.getSelections().isEmpty()){
46
ologLog = new OlogLog();
47
}
48
- else{
49
- ologLog = AdapterService.adapt(selection.getSelections().get(0), LogEntry.class).get();
+ else {
+ ologLog = AdapterService
50
+ .adapt(selection.getSelections().get(0), LogEntry.class)
51
+ .orElse(new OlogLog());
52
53
new LogEntryEditorStage(ologLog).show();
54
return null;
0 commit comments