Search Issue Tracker

Fixed

Fixed in 2021.3.29f1, 2022.3.5f1, 2023.1.5f1, 2023.2.0b6, 2023.3.0a1, 7000.0.0a1

Votes

1

Found in

2021.3.20f1

2022.2.9f1

2023.1.0b5

2023.2.0a4

7000.0.0a1

Issue ID

UUM-30243

Regression

No

[Android] AndroidJavaProxy call from Java to C# fails when any string parameter is null

--

-

Reproduction steps:
1. Open the attached project "AndroidJavaProxyNullString"
2. Build And Run on an Android device

Expected result: Output on the device screen shows all calls as OK
Actual result: Output on the device screen shows some of the calls as failed

Reproducible with: 2021.3.20f1, 2022.2.9f1, 2023.1.0b5, 2023.2.0a4
Could not test with: 2020.3.45 (Assets\Test.cs(10,56): error CS8124: Tuple must contain at least two elements.)

Reproducible with devices:
VLNQA00332, Samsung Galaxy XCover4 (SM-G390F), Android 9, CPU: Exynos 7 Quad 7570, GPU: Mali-T720
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76

Reproducible on: Windows 10 Enterprise 21H2

  1. Resolution Note (fix version 2023.3.0a1):

    AndroidJavaProxy Correctly Maps Null Variables (e.g empty string) + Automatic Testing for AndroidJavaProxy

  2. Resolution Note (fix version 2023.2.0b6):

    AndroidJavaProxy Correctly Maps Null Variables (e.g empty string) + Automatic Testing for AndroidJavaProxy

  3. Resolution Note (fix version 2023.1.5f1):

    AndroidJavaProxy Correctly Maps Null Variables (e.g empty string) + Automatic Testing for AndroidJavaProxy

  4. Resolution Note (fix version 2022.3.5f1):

    AndroidJavaProxy Correctly Maps Null Variables (e.g empty string) + Automatic Testing for AndroidJavaProxy

  5. Resolution Note (fix version 2021.3.29f1):

    AndroidJavaProxy Correctly Maps Null Variables (e.g empty string) + Automatic Testing for AndroidJavaProxy

Comments (2)

  1. i9mobile

    Aug 23, 2023 18:19

    This fix is causing problem with AdMob consent screen and I suspect with Unity Purchasing module with private methods.

  2. DNHND

    Jul 25, 2023 19:08

    Hello! I believe there is an issue with this fix. Could you please check this post for more details? https://forum.unity.com/threads/exceptions-after-uum-30243-fix.1465151/

Add comment

Log in to post comment

All about bugs

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