codecharta icon indicating copy to clipboard operation
codecharta copied to clipboard

Sourcecodeparser can't parse MicroHttp

Open Richargh opened this issue 9 months ago • 0 comments

Bug

This bug is interesting. I thought the previous parsing issues had some relation to the amount of code, but microhttp only has about 1800 RLoC.

Expected Behavior

GIVEN

git clone [email protected]:ebarlas/microhttp.git

WHEN

ccsh sourcecodeparser jabref/ -o microhttp.src.cc.json

THEN I get a valid microhttp.src.cc.json

Actual Behavior

  • from 46% onwards we get lots of java.lang.NullPointerException: Cannot invoke "org.sonar.plugins.java.api.tree.ClassTree.simpleName()" because the return value of "java.util.Deque.peek()" is null and java.lang.NullPointerException: Cannot invoke "org.sonar.plugins.java.api.tree.Tree.kind()" because "node" is null

And CodeCharta Visualization says the file is "empty or invalid"

Specifications

  • is released in online-demo: yes
  • CodeCharta Version: 1.125.0
  • OS: MacOs
  • Browser: FireFox

Richargh avatar May 18 '24 14:05 Richargh