diff options
| author | 2024-07-08 17:17:01 +0000 | |
|---|---|---|
| committer | 2024-07-08 19:19:36 +0000 | |
| commit | 1437c7e79aa0cf139c395a0d7fb569f13968c290 (patch) | |
| tree | 14c6e184f8311a84fa958f283be91ee27cd8559e /libs/androidfw/StringPool.cpp | |
| parent | b283f3d313904f0623e979e301a90634e1a01215 (diff) | |
Add null checks in CursorWindow#put{String,Blob}.
Currently passing null values to putString or putBlob will
crash in native code, which is not a great developer experience.
This commit adds null checks so the java layer will throw NPEs.
Flag: EXEMPT bugfix
Test: atest android.database.CursorWindow
Bug: 351839899
Change-Id: Ic4f1c55d0edb56fa08fabf4be6193afb6e86c3e6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions