OGRDataStore#getTypeNames() NPE with missing data source or empty data store

Description

I was doing some testing and found that specifying a DriverName that doesn''t exist would cause an NPE when looking up the type names

I fixed that by validating the driver first, then found when listing the layers in a geodatabase file that included only rasters, was doing the same thing - NPE og getTypeNames()

I'm creating a bug here so I can reference the id in my commit and merge request

Environment

linux, java 8 , jni version of ogr plugin

Assignee

Unassigned

Reporter

Nick Griffiths

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure