diff --git a/dwds/debug_extension_mv3/web/storage.dart b/dwds/debug_extension_mv3/web/storage.dart index 31a3fd228..2e90bd2b2 100644 --- a/dwds/debug_extension_mv3/web/storage.dart +++ b/dwds/debug_extension_mv3/web/storage.dart @@ -62,7 +62,12 @@ Future fetchStorageObject({required StorageObject type, int? tabId}) { final storageKey = _createStorageKey(type, tabId); final completer = Completer(); final storageArea = _getStorageArea(type.persistance); - storageArea.get([storageKey], allowInterop((Object storageObj) { + storageArea.get([storageKey], allowInterop((Object? storageObj) { + if (storageObj == null) { + debugWarn('Does not exist.', prefix: storageKey); + completer.complete(null); + return; + } final json = getProperty(storageObj, storageKey) as String?; if (json == null) { debugWarn('Does not exist.', prefix: storageKey);