Commit b3378f6
authored
[kotlin2cpg] Fix NoSuchElementException in SAM interface handling. (#5671)
When only partial type information is available, the expected type of a
lambda or function expression may not be available. This scenario was
not correctly handled which led to the NoSuchElementException.
Fix for https://shiftleftinc.atlassian.net/browse/SEN-44721 parent 23bb2a2 commit b3378f6
File tree
1 file changed
+6
-5
lines changed- joern-cli/frontends/kotlin2cpg/src/main/scala/io/joern/kotlin2cpg/ast
1 file changed
+6
-5
lines changedjoern-cli/frontends/kotlin2cpg/src/main/scala/io/joern/kotlin2cpg/ast/AstForFunctionsCreator.scala
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
545 | | - | |
546 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
0 commit comments