[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NullPointerException (2nd)
On Wed, Aug 25, 2004 at 02:43:36PM +0100, Uwe Dolinsky wrote:
> Hi,
>
> Is Soot still being maintained? I'm interested in using it but
> encountered lots of
> NullPointerExceptions (which all seem related) on my project files.
> I've narrowed down some code that causes a NullPointerException when
> Soot is to optimize
> the classfile:
>
> public interface red {
> public static final byte[] TEST = {0,0,0};
> };
Which version of Soot are you using? I can't reproduce the problem with
either the current Subversion trunk, or the last Soot release (2.1.0).
Ondrej
>
> The call stack is:
>
> java.lang.NullPointerException
> at soot.jimple.toolkits.typing.TypeNode.<init>(TypeNode.java:91)
> at
> soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.caseRefType(ClassHierarchy.java:238)
> at soot.RefType.apply(RefType.java:128)
> at
> soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.typeNode(ClassHierarchy.java:231)
> at
> soot.jimple.toolkits.typing.ClassHierarchy.typeNode(ClassHierarchy.java:127)
> at
> soot.jimple.toolkits.typing.ClassHierarchy.<init>(ClassHierarchy.java:82)
> at
> soot.jimple.toolkits.typing.ClassHierarchy.classHierarchy(ClassHierarchy.java:105)
> at
> soot.jimple.toolkits.typing.TypeResolver.<init>(TypeResolver.java:153)
> at
> soot.jimple.toolkits.typing.TypeResolver.resolve(TypeResolver.java:176)
> at
> soot.jimple.toolkits.typing.TypeAssigner.internalTransform(TypeAssigner.java:58)
> at soot.BodyTransformer.transform(BodyTransformer.java:51)
> at soot.Transform.apply(Transform.java:88)
> at soot.JimpleBodyPack.applyPhaseOptions(JimpleBodyPack.java:68)
> at soot.JimpleBodyPack.internalApply(JimpleBodyPack.java:91)
> at soot.Pack.apply(Pack.java:113)
> at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:115)
> at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:79)
> at soot.SootMethod.retrieveActiveBody(SootMethod.java:274)
> at soot.PackManager.runBodyPacks(PackManager.java:477)
> at soot.PackManager.runBodyPacks(PackManager.java:318)
> at soot.PackManager.runPacks(PackManager.java:278)
> at soot.Main.run(Main.java:180)
> at soot.Main.main(Main.java:154)
>
> Thanks
> Uwe
>