1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Crash fix for extended info in hover watch

This commit is contained in:
Brian Fiete 2022-02-12 14:27:34 -05:00
parent 95c6b1db98
commit a277fa18cf

View file

@ -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');