Fix traceback if the current frame isn't set

This commit is contained in:
Ben Jackson 2021-05-25 14:53:29 +01:00
commit a51b8b23c9

View file

@ -560,7 +560,8 @@ class StackTraceView( object ):
source[ 'name' ],
frame[ 'line' ] ) )
if self._current_frame[ 'id' ] == frame[ 'id' ]:
if ( self._current_frame is not None and
self._current_frame[ 'id' ] == frame[ 'id' ] ):
signs.PlaceSign( self._current_frame_sign_id,
'VimspectorStackTrace',
'vimspectorCurrentFrame',