diff --git a/src/main/java/io/github/dsheirer/gui/SDRTrunk.java b/src/main/java/io/github/dsheirer/gui/SDRTrunk.java index 60ba6344..28eb07c7 100644 --- a/src/main/java/io/github/dsheirer/gui/SDRTrunk.java +++ b/src/main/java/io/github/dsheirer/gui/SDRTrunk.java @@ -840,11 +840,16 @@ public class SDRTrunk implements Listener } /** - * Updates the title bar with the tuner name + * Updates the title bar with the tuner name. No-op when running headless (no main window). * @param tunerName optional */ private void updateTitle(String tunerName) { + if(mMainGui == null) + { + return; + } + if(tunerName != null) { mMainGui.setTitle(mTitle + " - " + tunerName);