Search Issue Tracker

Fixed in Unity 2018.3



Found in


Issue ID




Android application crashes when native function returns null




Priority: 2Necessary for shipping a final release


Severity: 1Crash, freeze, data loss, work stops

Calling Android native function that returns null through AndroidJavaObject.CallStatic<object> method crashes application
Steps to reproduce:
1. Open attached project "RefExp2"
2. Build and run on Android
-Inspect logcat for crash logs (Application screen will also turn black)

Reproduced with: 2018.2.0a1, 2018.2.1f1, 2018.3.0a7
Didn't reproduce with: 2017.3.2f1, 2017.4.9f1, 2018.1.8f1
Regressed in: 2018.2.0a1

Devices under test:
VLNQA00031, Lge Nexus 5 (Nexus 5), 6.0.1, CPU: Snapdragon 800 MSM8974, GPU: Adreno (TM) 330
VLNQA00002, Samsung Galaxy S5 Neo (SM-G903F), 6.0.1, CPU: Exynos 7 Octa 7580, GPU: Mali-T720
VLNQA00025, Xiaomi Mi 5s (MI 5s), 6.0.1, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
Google Emulator (Android SDK built for x86), 8.0.0, GPU: Android Emulator OpenGL ES Translator (AMD Radeon (TM) R7 360 Series)

Comments (43)

  1. F89086ae67039c977b402cb081b57489?d=mm


    May 20, 2019 10:50

    The nice website, i like to read your articles. Every time i find here a lot of useful information for my job

  2. F89086ae67039c977b402cb081b57489?d=mm


    May 20, 2019 10:48

    The nice website, i like to read your articles.

  3. 69632cee18eeebb27afe281cf169df14?d=mm


    May 20, 2019 03:44

    This is indeed good news! Finally the folks in the tech industry realized they thrashing the environment too much that they felt compelled to make something nice.

  4. 2fa97f4008e55e1509246f2c78ddf17f?d=mm


    May 07, 2019 04:30

    Things are very open and intensely clear, explanation of issues was truly informative.

  5. Cbf1d5cf646df84bc86ce007f1c88d41?d=mm


    May 05, 2019 20:35

    I have been wondering why my phone has been acting up strangely.. this gives me some insight as to the possibility. Thanks for clarifying this issue.
    Roland -

  6. D680f8a4cf1d48045784b2854ea4ed74?d=mm


    Apr 30, 2019 10:44

  7. 53d4abd1d481f0a46bb7476256c8e1a2?d=mm


    Apr 16, 2019 13:01

    A few engineers plan and manufacture their application to act like Mariah Carey or Cristiano Ronaldo. Their applications carry on like minimal advanced divas, hoarding all the telephone's consideration and depleting its assets.

  8. Efe79f65b219936f2d04856fe29b09ac?d=mm


    Apr 16, 2019 13:00

    Have a smashing good time with Toon Blast by Peak Games! A free online puzzle game for all to play, download Toon Blast for PC now! You may even unlock cheat codes or get unlimited lives!

  9. Eadd691fdb3a1a577e4b35c2bcb873f2?d=mm


    Apr 16, 2019 11:52

    Thank u so much for share post

    You have finding more information about how to Change Outlook Password related problems.
    Visit here:-

  10. 59a3e7606ffc10484126a1b5b4768d32?d=mm


    Mar 22, 2019 06:18

    Thanks for sharing this informative article. Any news for updated SDK?

    Having email issues on Android Get email support at:

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.