[android] Fixed crash during push woosh open source mode

This commit is contained in:
Александр Зацепин 2018-11-07 13:25:33 +03:00 committed by yoksnod
parent edbc05c313
commit cbf2e581d1
2 changed files with 3 additions and 5 deletions

View file

@ -17,8 +17,6 @@ import java.util.Map;
class LibnotifyEventLogger extends DefaultEventLogger
{
@SuppressWarnings("NullableProblems")
LibnotifyEventLogger(@NonNull Application application)
{
super(application);

View file

@ -15,8 +15,7 @@ class PushWooshEventLogger extends DefaultEventLogger
private static final Logger LOGGER = LoggerFactory.INSTANCE.getLogger(LoggerFactory.Type.MISC);
private static final String PW_EMPTY_APP_ID = "XXXXX";
@SuppressWarnings("NullableProblems")
@NonNull
@Nullable
private PushwooshHelper mPushwooshHelper;
PushWooshEventLogger(@NonNull Application application)
@ -46,6 +45,7 @@ class PushWooshEventLogger extends DefaultEventLogger
public void sendTags(@NonNull String tag, @Nullable String[] params)
{
super.sendTags(tag, params);
mPushwooshHelper.sendTags(tag, params);
if (mPushwooshHelper != null)
mPushwooshHelper.sendTags(tag, params);
}
}