Oracle SQL View with NULL SRID breaks Bounds calculations on BasicResourceConfig

Description

When creating an SQL View without SRS, the BasicResourceConfig page still tries to guess the Native SRS, resulting in strange behavior and throwing error

```Error getting actual Native SRS code for resource ADRESSER: java.lang.NullPointerException```

Steps to Re-produce

-Run Geoserver with Oracle Datastore enabled

-Create Oracle table with SDO Geometry, Metadata entry and index following example Oracle SDO Geometry Example

-Create an SQL View using SQL (select * from COLA_MARKETS)
-Don't set the SRID and submit the view

-Verify log error Error getting actual Native SRS code for resource ADRESSER: java.lang.NullPointerException`

Environment

None

Status

Assignee

Imran Rajjad

Reporter

Imran Rajjad

Triage

Fix versions

Affects versions

Components

Priority

Medium
Configure