Skip to content

Commit

Permalink
Merge pull request #2965 from ControlSystemStudio/log_submit_fix
Browse files Browse the repository at this point in the history
Fix NPE when creating log entry
  • Loading branch information
shroffk authored Mar 4, 2024
2 parents 09f38fa + 9fd75f2 commit d9da0b2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public LogClient getClient() {
* @param logEntry A new or updated {@link LogEntry}
*/
public void handleLogEntryChange(LogEntry logEntry){
logEntryTable.logEntryChanged(logEntry);
// At this point the logEntryTable might be null, e.g. if log entry editor is launched
// before first launch of log entry table app.
if(logEntryTable != null){
logEntryTable.logEntryChanged(logEntry);
}
}
}

0 comments on commit d9da0b2

Please sign in to comment.