mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed moreinfo hover crash with no source location
This commit is contained in:
parent
087a129007
commit
c080f1cbb1
2 changed files with 4 additions and 6 deletions
|
@ -1118,9 +1118,7 @@ namespace IDE
|
|||
{
|
||||
int32 charIdx = int32.Parse(loc).GetValueOrDefault();
|
||||
var fileEditData = GetEditData(cmds[1]);
|
||||
if (fileEditData == null)
|
||||
break;
|
||||
fileEditData.mEditWidget.mEditWidgetContent.GetLineCharAtIdx(charIdx, out line, out lineChar);
|
||||
fileEditData?.mEditWidget?.mEditWidgetContent.GetLineCharAtIdx(charIdx, out line, out lineChar);
|
||||
}
|
||||
ShowSourceFileLocation(cmds[1], -1, -1, line, lineChar, .Smart, true);
|
||||
case "ShowCodeAddr":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue