mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Prevent NPE
This commit is contained in:
@@ -73,6 +73,8 @@ public class FairEmailLoggingProvider extends TinylogLoggingProvider {
|
||||
boolean debug = prefs.getBoolean("debug", false);
|
||||
|
||||
FairEmailLoggingProvider provider = (FairEmailLoggingProvider) ProviderRegistry.getLoggingProvider();
|
||||
if (provider == null)
|
||||
return;
|
||||
|
||||
if (debug)
|
||||
provider.activeLevel = Level.DEBUG;
|
||||
|
||||
Reference in New Issue
Block a user