Skip to content

NPE in code path through EmbeddedSocial.initGlobalObjects() #91

@barbeau

Description

@barbeau

Summary:

I'm seeing this NPE with 18 occurrences in OneBusAway Android in the Android Developer Console:

Caused by: java.lang.NullPointerException: 
  at com.microsoft.embeddedsocial.ui.c.a.<init> (Unknown Source)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.initGlobalObjects (Unknown Source)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.init (Unknown Source)
  at org.onebusaway.android.app.Application.setUpSocial (Application.java:579)
  at org.onebusaway.android.app.Application.onCreate (Application.java:111)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1032)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:5881)

...from Samsung Galaxy S7 devices (Sprint and Verizon) and:

Caused by: java.lang.NullPointerException: 
  at com.microsoft.embeddedsocial.ui.c.a.<init> (Unknown Source)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.initGlobalObjects (Unknown Source)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.init (Unknown Source)
  at org.onebusaway.android.app.Application.setUpSocial (Application.java:579)
  at org.onebusaway.android.app.Application.onCreate (Application.java:111)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1037)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6499)

...from Galaxy J3 and J1 devices.

EDIT May 17 - Unobfuscated stack trace is below:

Caused by: java.lang.NullPointerException: 
  at com.microsoft.embeddedsocial.ui.notification.NotificationController.<init> (NotificationController.java)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.initGlobalObjects (EmbeddedSocial.java)
  at com.microsoft.embeddedsocial.sdk.EmbeddedSocial.init (EmbeddedSocial.java)
  at org.onebusaway.android.app.Application.setUpSocial (Application.java:579)
  at org.onebusaway.android.app.Application.onCreate (Application.java:111)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1037)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6499)
  at android.app.ActivityThread.access$1800 (ActivityThread.java:231)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1889)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:148)
  at android.app.ActivityThread.main (ActivityThread.java:7422)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

Looks to be the same error, but it's in the obfuscated part of the ES SDK. We'll need the Proguard mapping file to debug further to see the method name for ...ui.c.a.

Steps to reproduce:

Unknown (reported via Android Developer Console)

Expected behavior:

Not crash

Observed behavior:

Crash

Device and Android version:

Samsung Galaxy S7, J3, and J1 devices (Android 7.0 for S7 and Android 6.0 for J3 and J1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions