Commit aeddea3
authored
Fix crash in DefaultCache::Put with nullptr value (#1050)
DefaultCache::Put value is ValueTypePtr. If the value is nullptr the
crash will occur. Adding check for the value and unit test.
Resolves: OLPEDGE-2295
Signed-off-by: Kostiantyn Zvieriev <ext-kostiantyn.zvieriev@here.com>1 parent 4afb3d3 commit aeddea3
File tree
2 files changed
+16
-0
lines changed- olp-cpp-sdk-core
- src/cache
- tests/cache
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
71 | 83 | | |
72 | 84 | | |
73 | 85 | | |
| |||
0 commit comments