You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The printTypes method is broken for SniperJavaPrettyPrinter, it always causes a NullPointerException. It's caused by the implementation of printTypes in DefaultJavaPrettyPrinter passing null for the CU to calculate
Hi,
The
printTypes
method is broken forSniperJavaPrettyPrinter
, it always causes aNullPointerException
. It's caused by the implementation ofprintTypes
inDefaultJavaPrettyPrinter
passingnull
for the CU tocalculate
spoon/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java
Lines 2006 to 2010 in 1cc3c74
and the
SniperJavaPrettyPrinter
assuming that the CU is not nullspoon/src/main/java/spoon/support/sniper/SniperJavaPrettyPrinter.java
Lines 112 to 116 in 1cc3c74
I don't think it's possible for the sniper printer to do its job without the CU. Working on a PR.
The text was updated successfully, but these errors were encountered: