diff --git a/src/main/java/club/joylink/xiannccda/ats/cache/LineGraphicDataRepository.java b/src/main/java/club/joylink/xiannccda/ats/cache/LineGraphicDataRepository.java index 97ab534..9c6135d 100644 --- a/src/main/java/club/joylink/xiannccda/ats/cache/LineGraphicDataRepository.java +++ b/src/main/java/club/joylink/xiannccda/ats/cache/LineGraphicDataRepository.java @@ -43,16 +43,18 @@ public class LineGraphicDataRepository { */ public static void putLineGraph(PublishedGi publishGi) { try { - LayoutGraphicsProto.RtssGraphicStorage storage = - LayoutGraphicsProto.RtssGraphicStorage.parseFrom(publishGi.getProto()); - Map> lineDataMap = new HashMap<>(); - // 构建区段 - sectionInitLineGraph(lineDataMap, storage); - // 构建道岔 - switchInitLineGraph(lineDataMap, storage); - // 设置公里标 - setUpKilometerCode(lineDataMap, storage); - lineGraphMap.put(publishGi.getLineId(), lineDataMap); + if (publishGi.getLineId() != null) { + LayoutGraphicsProto.RtssGraphicStorage storage = + LayoutGraphicsProto.RtssGraphicStorage.parseFrom(publishGi.getProto()); + Map> lineDataMap = new HashMap<>(); + // 构建区段 + sectionInitLineGraph(lineDataMap, storage); + // 构建道岔 + switchInitLineGraph(lineDataMap, storage); + // 设置公里标 + setUpKilometerCode(lineDataMap, storage); + lineGraphMap.put(publishGi.getLineId(), lineDataMap); + } } catch (InvalidProtocolBufferException e) { log.error("反序列化信息失败", e); } diff --git a/xian-ncc-da-message b/xian-ncc-da-message index 2b9ad05..9a7b4b7 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit 2b9ad05b202b3b90c3f64b6b8c8a56ec83716f08 +Subproject commit 9a7b4b7a3a912970197155a149a9da463d2a68fc