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.

View | Details | Raw Unified | Return to bug 269971
Collapse All | Expand All

(-)a/o.n.bootstrap/src/org/netbeans/ModuleManager.java (+3 lines)
Lines 901-906 Link Here
901
        if (theHost == null) {
901
        if (theHost == null) {
902
            throw new IllegalStateException("Missing hosting module " + fragmentHost + " for fragment " + m.getCodeName());
902
            throw new IllegalStateException("Missing hosting module " + fragmentHost + " for fragment " + m.getCodeName());
903
        }
903
        }
904
        if (!theHost.isEnabled()) {
905
            return null;
906
        }
904
        return theHost.getClassLoader();
907
        return theHost.getClassLoader();
905
    }
908
    }
906
    
909
    
(-)a/o.n.bootstrap/src/org/netbeans/Util.java (-2 / +4 lines)
Lines 306-312 Link Here
306
            // so the dependent modules are enabled before the host+fragment merged
306
            // so the dependent modules are enabled before the host+fragment merged
307
            // classloader will activate
307
            // classloader will activate
308
            Collection<Module> frags = fragments.get(m1.getCodeNameBase());
308
            Collection<Module> frags = fragments.get(m1.getCodeNameBase());
309
            if (frags != null) {
309
            if (frags != null && !frags.isEmpty()) {
310
                frags = new HashSet<>(frags);
310
                frags = new HashSet<>(frags);
311
                frags.retainAll(modules);
311
                frags.retainAll(modules);
312
            
312
            
Lines 335-341 Link Here
335
                        }
335
                        }
336
                    }
336
                    }
337
                }
337
                }
338
                l.remove(m1);
338
                if (l != null) {
339
                    l.remove(m1);
340
                }
339
            }
341
            }
340
            if (l != null) {
342
            if (l != null) {
341
                m.put(m1, l);
343
                m.put(m1, l);

Return to bug 269971