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 - NPE in SchemaElementImpl.java getTable function
Summary: NPE in SchemaElementImpl.java getTable function
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 8.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 09:07 UTC by mskdeepak
Modified: 2017-11-22 09:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.