Commit d1cbef6
committed
fix #3052: NPE in UploadResource when filename casing differs
Case-insensitive FileName match in UploadResource — DB row may have
different casing than the freshly-uploaded file (e.g., springfiles vs
original-upload casing). Plus null-guards on the resource and contentFile
lookups so a missing match logs gracefully instead of NPEing.1 parent 952e937 commit d1cbef6
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
457 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
458 | 464 | | |
459 | 465 | | |
460 | | - | |
| 466 | + | |
461 | 467 | | |
462 | 468 | | |
463 | 469 | | |
| |||
0 commit comments