Skip to content

[NETBEANS-2953] Fix for NPE after pressing 'DTDs and XML Schemas' men…#1491

Merged
geertjanw merged 1 commit intoapache:masterfrom
peedeeboy:NETBEANS-2953
Sep 14, 2019
Merged

[NETBEANS-2953] Fix for NPE after pressing 'DTDs and XML Schemas' men…#1491
geertjanw merged 1 commit intoapache:masterfrom
peedeeboy:NETBEANS-2953

Conversation

@peedeeboy
Copy link
Copy Markdown
Contributor

What this pull request does
Prevents Netbeans from crashing with a NPE when selecting Tools -> DTDs and XML Schemas

Files Changed
enterprise/payara.jakartaee/src/org/netbeans/modules/payara/jakartaee/layer.xml
Changed so that the method used when registering is getDefaultRuntimeDDCatalog() instead of getRuntimeDDCatalog(). This now matches the equivilent method called when registering GlassFish DD catalog - getEE6RunTimeDDCatalog()

Testing
Navigate to Tools menu -> DTD and XML Schemas
Before this PR: NB will crash with a NPE
After this PR: The Enterprise Catalog dialog will open successfully

@peedeeboy
Copy link
Copy Markdown
Contributor Author

@jGauravGupta as this is Payara related, would you be kind enough to check you are happy with this very minor change? :) cheers!

@geertjanw
Copy link
Copy Markdown
Member

Thanks, merging.

@geertjanw geertjanw merged commit 2274b81 into apache:master Sep 14, 2019
@junichi11 junichi11 added this to the 11.2 milestone Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants