This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253596

Summary: NullPointerException at com.sun.tools.javac.code.Types$Subst.visitTypeVar
Product: java Reporter: clinuxrulz
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: jbosboom, jglick
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 56883
Attachments: stacktrace
stacktrace

Description clinuxrulz 2015-07-21 00:01:54 UTC
Build: NetBeans IDE Dev (Build 201507190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 7

User Comments:
GUEST: Started NetBeans with a bunch of open projects.

jbosboom: I invoked code completion from within a rather complicated expression, expecting to complete a field name.

clinuxrulz: pressing "." in some complicated code

GUEST: coding with generics.

Example:
    private static <M> $<Stream<Line2D>,M> getNogginLinesM(final MonadReader<EnvVars,M> monadReader) {
        // TODO: Finish this, it adds noggins if the web member is too long.
        final Monad<M> monad = monadReader.monad();
        return monad.bind(
            getPanelMachineParametersM(monadReader),
            getWebLinesM(monadReader),
            new F2<PanelMachineParameters,Stream<Line2D>,Stream<Line2D>>() {
                @Override
                public Stream<Line2D> f(
                    PanelMachineParameters panelMachineParameters,
                    Stream<Line2D> webLines
                ) {
                    final Stream<Line2D> sortedWebLines = webLines.sort(fj.Ord.doubleOrd.comap(new F<Line2D,Double>() {
                        @Override
                        public Double f(Line2D a) {
                            return 0.5 * (a.getFrom().getX() + a.getTo().getX());
                        }
                    }));

clinuxrulz: Typing code

jglick: Tweaking Fortress.java.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Types$Subst.visitTypeVar(Types.java:2967)
   at com.sun.tools.javac.code.Types$Subst.visitTypeVar(Types.java:2905)
   at com.sun.tools.javac.code.Type$TypeVar.accept(Type.java:1289)
   at com.sun.tools.javac.code.Types$UnaryVisitor.visit(Types.java:4579)
   at com.sun.tools.javac.code.Types$Subst.subst(Types.java:2928)
   at com.sun.tools.javac.code.Types$Subst.subst(Types.java:2936)
Comment 1 clinuxrulz 2015-07-21 00:01:57 UTC
Created attachment 154746 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-10-15 08:55:43 UTC
Created attachment 156738 [details]
stacktrace

Auto-completion doesn't show up anymore