Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Ensure framework is initialized before fetching the state

vishnukvmd0b2b5689db1c
diff --git a/lib/services/semantic_search/semantic_search_service.dart b/lib/services/semantic_search/semantic_search_service.dart
index ddb03d78b0..37b1901d55 100644
--- a/lib/services/semantic_search/semantic_search_service.dart
+++ b/lib/services/semantic_search/semantic_search_service.dart
@@ -151,6 +151,9 @@ class SemanticSearchService {
}
InitializationState getFrameworkInitializationState() {
+ if (!_hasInitialized) {
+ return InitializationState.notInitialized;
+ }
return _mlFramework.initializationState;
}