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 41505
Collapse All | Expand All

(-)src/org/netbeans/modules/apisupport/project/ModuleList.java (-6 / +6 lines)
Lines 67-93 Link Here
67
                Element el = (Element)it.next();
67
                Element el = (Element)it.next();
68
                Element pathEl = Util.findElement(el, "path", null); // NOI18N
68
                Element pathEl = Util.findElement(el, "path", null); // NOI18N
69
                if (pathEl == null) {
69
                if (pathEl == null) {
70
                    throw new SAXException("No <path>"); // NOI18N
70
                    throw new SAXException("No <path> in " + modulesXml + " for " + el); // NOI18N
71
                }
71
                }
72
                String path = Util.findText(pathEl);
72
                String path = Util.findText(pathEl);
73
                if (path == null) {
73
                if (path == null) {
74
                    throw new SAXException("No text in <path>"); // NOI18N
74
                    throw new SAXException("No text in <path> in " + modulesXml + " for " + el); // NOI18N
75
                }
75
                }
76
                Element cnbEl = Util.findElement(el, "cnb", null); // NOI18N
76
                Element cnbEl = Util.findElement(el, "cnb", null); // NOI18N
77
                if (cnbEl == null) {
77
                if (cnbEl == null) {
78
                    throw new SAXException("No <cnb>"); // NOI18N
78
                    throw new SAXException("No <cnb> in " + modulesXml + " for " + el); // NOI18N
79
                }
79
                }
80
                String cnb = Util.findText(cnbEl);
80
                String cnb = Util.findText(cnbEl);
81
                if (cnb == null) {
81
                if (cnb == null) {
82
                    throw new SAXException("No text in <cnb>"); // NOI18N
82
                    throw new SAXException("No text in <cnb> in " + modulesXml + " for " + el); // NOI18N
83
                }
83
                }
84
                Element jarEl = Util.findElement(el, "jar", null); // NOI18N
84
                Element jarEl = Util.findElement(el, "jar", null); // NOI18N
85
                if (jarEl == null) {
85
                if (jarEl == null) {
86
                    throw new SAXException("No <jar>"); // NOI18N
86
                    throw new SAXException("No <jar> in " + modulesXml + " for " + el); // NOI18N
87
                }
87
                }
88
                String jar = Util.findText(jarEl);
88
                String jar = Util.findText(jarEl);
89
                if (jar == null) {
89
                if (jar == null) {
90
                    throw new SAXException("No text in <jar>"); // NOI18N
90
                    throw new SAXException("No text in <jar> in " + modulesXml + " for " + el); // NOI18N
91
                }
91
                }
92
                entries.put(cnb, new Entry(path, cnb, jar));
92
                entries.put(cnb, new Entry(path, cnb, jar));
93
            }
93
            }

Return to bug 41505