mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Fix crash at first start when 'userInfoBox' does not contain 'serverEndpointKey' before API service is initialized (#1362)
This commit is contained in:
		| @@ -20,8 +20,8 @@ class ApiService { | ||||
|  | ||||
|   ApiService() { | ||||
|     if (Hive.isBoxOpen(userInfoBox)) { | ||||
|       final endpoint = Hive.box(userInfoBox).get(serverEndpointKey) as String; | ||||
|       if (endpoint.isNotEmpty) { | ||||
|       final endpoint = Hive.box(userInfoBox).get(serverEndpointKey) as String?; | ||||
|       if (endpoint != null && endpoint.isNotEmpty) { | ||||
|         setEndpoint(endpoint); | ||||
|       } | ||||
|     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user