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 271731

Summary: NPE in SchemaElementImpl.java getTable function
Product: db Reporter: mskdeepak
Component: DB schemaAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description mskdeepak 2017-10-30 09:07:42 UTC
The fix for Bug 167389(https://netbeans.org/bugzilla/show_bug.cgi?id=167389) has introduced an NPE at SchemaElementImpl.java:215. 
A null check should happen before the line getDriver().contains("mysql"). The function should return null in case the driver field is null.

Something like this would be the change required: 
else if (getDriver()!=null && getDriver().contains("mysql"))

Can someone confirm the bug please?
Comment 1 mskdeepak 2017-11-22 09:28:17 UTC
Can someone verify and provide a solution for this. I am a GlassFish developer and we are blocked because of this.