From 52087a4a1a1d5a990392262c6e395d2fe052751e Mon Sep 17 00:00:00 2001 From: spool Date: Wed, 12 Nov 2025 13:57:13 -0500 Subject: [PATCH] Catching a cast exception that prevents construction of the appropriate class in LinkLayer::handleLinkActionList() --- src/openmap/com/bbn/openmap/layer/link/LinkLayer.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/openmap/com/bbn/openmap/layer/link/LinkLayer.java b/src/openmap/com/bbn/openmap/layer/link/LinkLayer.java index afe77c37..32df9818 100644 --- a/src/openmap/com/bbn/openmap/layer/link/LinkLayer.java +++ b/src/openmap/com/bbn/openmap/layer/link/LinkLayer.java @@ -237,7 +237,16 @@ public synchronized void setGraphicList(LinkOMGraphicList aList) { * Retrieves the current graphics list. */ public synchronized LinkOMGraphicList getGraphicList() { - return (LinkOMGraphicList) getList(); + try { + return (LinkOMGraphicList) getList(); + } + catch (ClassCastException e) { + if (Debug.debugging("link")) + { + Debug.output("OMGraphicHandlerLayer does not currently have a LinkOMGraphicList."); + } + return null; + } } /**