diff options
author | Miguel Costa <miguel.costa@qt.io> | 2020-12-15 12:20:01 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2020-12-17 13:20:52 +0000 |
commit | 834e18e12ad6bdb9ef52a529df833ca6b12f41d1 (patch) | |
tree | 2db2c708e54b0d55f89428cf321f7a58221a2a54 | |
parent | 7fdf9e7cf0f4a8098a8159269e2f864a45331733 (diff) |
Fix null-ref error if QML file not found
Change-Id: Iac5f7e3c982ab6924b2d58b5c8e826b4d54a1237
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/qtvstools/QML/Debugging/AD7/QmlDebugAD7Breakpoint.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qtvstools/QML/Debugging/AD7/QmlDebugAD7Breakpoint.cs b/src/qtvstools/QML/Debugging/AD7/QmlDebugAD7Breakpoint.cs index 8dc51c5d..867d8977 100644 --- a/src/qtvstools/QML/Debugging/AD7/QmlDebugAD7Breakpoint.cs +++ b/src/qtvstools/QML/Debugging/AD7/QmlDebugAD7Breakpoint.cs @@ -200,6 +200,8 @@ namespace QtVsTools.Qml.Debug.AD7 get { var qrcPath = Engine.FileSystem[Parent.FileName].QrcPath; + if (qrcPath == null) + return string.Empty; if (qrcPath.StartsWith("qrc:///", StringComparison.InvariantCultureIgnoreCase)) qrcPath = qrcPath.Substring("qrc:///".Length); return qrcPath; |