java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by kunall17
, 9 months ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via Stack Overflow by RandomyzeEverything
, 7 months ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
via Stack Overflow by RandomyzeEverything
, 7 months ago
Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
at java.util.ArrayList.addAll(ArrayList.java:188)
at com.zulip.android.activities.ZulipActivity.combineList(ZulipActivity.java:804)
at com.zulip.android.activities.ZulipActivity.refreshPeopleDrawer(ZulipActivity.java:792)
at com.zulip.android.activities.ZulipActivity.setUpPeopleDrawerAdapter(ZulipActivity.java:689)
at com.zulip.android.activities.ZulipActivity.onCreate(ZulipActivity.java:293)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)

Users with the same issue

2 times, 1 year ago
56 times, 1 year ago
4 times, 1 year ago
133 times, 1 year ago
25 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.