Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE Bug,at: RealmProxy#toString() ,if there are nullable byte[] #7084

Closed
Raynor999 opened this issue Sep 7, 2020 · 0 comments
Closed

NPE Bug,at: RealmProxy#toString() ,if there are nullable byte[] #7084

Raynor999 opened this issue Sep 7, 2020 · 0 comments
Assignees

Comments

@Raynor999
Copy link

Raynor999 commented Sep 7, 2020

Goal

No Crash

Actual Results

throw NPE ,using nullable field.

NPE:caused by this changed #6767

 field is ByteArray -> {
                            emitStatement("stringBuilder.append(\"binary(\" + field.length + \")\")")
                        }

log:
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at : io.realm.com_sundayfun_daycam_data_ShotRealmProxy.toString()

Version of Realm and tooling

Realm version(s): 7.0.3

Realm Sync feature enabled: NO

language: Kotiln, kapt.

@Raynor999 Raynor999 changed the title NPE Bug, Nullable byte[] NPE Bug,at: RealmProxy#toString() ,if there are nullable byte[] Sep 7, 2020
@RealmBot RealmBot closed this as completed Sep 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants