Null pointer exception fix
This commit is contained in:
Родитель
a7d8fb6476
Коммит
c099307cf6
|
@ -28,11 +28,12 @@ public class EventProperties {
|
|||
if (name == null || !Utils.validatePropertyName(name))
|
||||
throw new IllegalArgumentException("name is null or invalid");
|
||||
|
||||
mStorage = new EventPropertiesStorage();
|
||||
|
||||
if (!setName(name))
|
||||
throw new IllegalArgumentException("name is invalid");
|
||||
|
||||
setLevel(diagnosticLevel);
|
||||
mStorage = new EventPropertiesStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче