Commit 19c4658
authored
fix: null pointer exception error fields [IDE-1581] (#745)
* fix: use correct error fields in tree node text methods
Fix NullPointerException issues in getNewIacTreeNodeText and getNewOssTreeNodeText:
- In getNewIacTreeNodeText: use currentIacError instead of currentSnykCodeError when currentIacError is not null
- In getNewOssTreeNodeText: use currentOssError instead of currentSnykCodeError when realError is true
Both methods were accessing the wrong error field, which could be null and cause NullPointerExceptions.
* fix: improve error handling consistency in tree node text
- Fixed OSS to check errors before scanning status (matching IAC and Code Security)
- Fixed IAC to filter errors when no supported files found (matching OSS behavior)
- Updated CHANGELOG with 2.18.1 fixes1 parent 185ca1a commit 19c4658
File tree
2 files changed
+15
-7
lines changed- src/main/kotlin/io/snyk/plugin/ui/toolwindow
2 files changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
515 | 517 | | |
516 | | - | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
523 | | - | |
| 525 | + | |
524 | 526 | | |
525 | 527 | | |
526 | 528 | | |
| |||
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| 543 | + | |
541 | 544 | | |
542 | 545 | | |
543 | 546 | | |
544 | | - | |
545 | | - | |
| 547 | + | |
| 548 | + | |
546 | 549 | | |
547 | 550 | | |
548 | 551 | | |
| |||
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
592 | | - | |
593 | 595 | | |
594 | | - | |
| 596 | + | |
595 | 597 | | |
596 | 598 | | |
| 599 | + | |
597 | 600 | | |
598 | 601 | | |
599 | 602 | | |
| |||
0 commit comments