microsoft / ApplicationInsights-Android

Microsoft Application Insights SDK for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

null-ref exception if instrumentation key is not provided

southwood opened this issue · comments

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
            at com.microsoft.commonlogging.channel.TelemetryChannelConfig.readInstrumentationKey(TelemetryChannelConfig.java:113)
            at com.microsoft.commonlogging.channel.TelemetryChannelConfig.<init>(TelemetryChannelConfig.java:82)
            at com.microsoft.applicationinsights.TelemetryClientConfig.<init>(TelemetryClientConfig.java:18)
            at com.microsoft.applicationinsights.TelemetryClient.getInstance(TelemetryClient.java:47)
            at com.example.vseqa1.myapplication3.MainActivity.onCreate(MainActivity.java:21)