From a277fa18cf78eda0837b381fa353ad984a63e604 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 12 Feb 2022 14:27:34 -0500 Subject: [PATCH] Crash fix for extended info in hover watch --- IDE/src/ui/HoverWatch.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDE/src/ui/HoverWatch.bf b/IDE/src/ui/HoverWatch.bf index 5caf197f..ca963871 100644 --- a/IDE/src/ui/HoverWatch.bf +++ b/IDE/src/ui/HoverWatch.bf @@ -1543,10 +1543,10 @@ namespace IDE.ui public bool Show(TextPanel textPanel, float x, float y, String displayString, String evalString) { - if ((mIsShown) && (evalString.StartsWith(':'))) + if ((mIsShown) && (mListView != null) && (evalString.StartsWith(':'))) { var listItem = mListView.GetRoot().GetChildAtIndex(0) as HoverListViewItem; - bool isLiteral = listItem.Label == listItem.GetSubItem(1).Label; + bool isLiteral = (listItem.Label == listItem.GetSubItem(1).Label) || (listItem.Label == ""); StringView useStr = evalString.Substring(1); int crPos = useStr.IndexOf('\n');