diff --git a/src/Akavache.Core/Platforms/shared/Registrations.cs b/src/Akavache.Core/Platforms/shared/Registrations.cs index c8de69590..1b122456c 100644 --- a/src/Akavache.Core/Platforms/shared/Registrations.cs +++ b/src/Akavache.Core/Platforms/shared/Registrations.cs @@ -64,7 +64,8 @@ public void Register(IMutableDependencyResolver resolver, IReadonlyDependencyRes #if ANDROID var packageManager = Application.Context.PackageManager; - var applicationLabel = packageManager?.GetApplicationInfo(Application.Context.PackageName, 0)?.LoadLabel(packageManager); + var packageName = Application.Context.PackageName ?? "Unknown Package"; + var applicationLabel = packageManager?.GetApplicationInfo(packageName, 0)?.LoadLabel(packageManager); BlobCache.ApplicationName = applicationLabel ?? "Unknown";