You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NullPointerException in ShpGeoResourceInfo while executing search in SearchView #678
add natruralearth dataset 10m-admin-0-countries.shp to map
opened Search View and typed "countries" into search field
exectued search, the following exception has been logged, nothing else happens:
!ENTRY org.locationtech.udig.catalog 4 0 2022-02-02 16:12:19.856
!MESSAGE Could not search in resource:C:\dev\data\testdata\10m-admin-0-countries.shp#10m-admin-0-countries
!STACK 0
java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3042)
at java.net.URI.<init>(URI.java:588)
at org.locationtech.udig.catalog.internal.shp.ShpGeoResourceInfo.getSchema(ShpGeoResourceInfo.java:96)
at org.locationtech.udig.catalog.internal.CatalogImpl.check(CatalogImpl.java:818)
at org.locationtech.udig.catalog.internal.CatalogImpl.check(CatalogImpl.java:828)
at org.locationtech.udig.catalog.internal.CatalogImpl.search(CatalogImpl.java:733)
at org.locationtech.udig.catalog.ui.search.SearchView.searchImplementation(SearchView.java:513)
at org.locationtech.udig.ui.SearchPart$1.run(SearchPart.java:530)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Obviously doesn't have the the FeatureType a namespace set.
After a debug-session it looks like that the ShpServiceExtension does't set ShapefileDataStoreFactory.NAMESPACEP.key in parameter map which leads to a Name-Object without a namespace.
Not sure why but the ShpGeoResourceInfo.getSchema(ShpGeoResourceInfo.java:96) does not handle null correctly, I guess I'll try to fix both ends.
changed the title [-]NullPointerException in ShpGeoResourceInfor while executing search in SearchView[/-][+]NullPointerException in ShpGeoResourceInfo while executing search in SearchView[/+]on Feb 7, 2022
Activity
fgdrf commentedon Feb 2, 2022
After a debug-session it looks like that the ShpServiceExtension does't set ShapefileDataStoreFactory.NAMESPACEP.key in parameter map which leads to a Name-Object without a namespace.
Not sure why but the
ShpGeoResourceInfo.getSchema(ShpGeoResourceInfo.java:96)does not handle null correctly, I guess I'll try to fix both ends.[ISSUE locationtech#678] fixes catalog search NPE for SHP
[ISSUE locationtech#678] fixes catalog search NPE for SHP
[ISSUE locationtech#678] fixes catalog search NPE for SHP
[ISSUE locationtech#678] fixes catalog search NPE for SHP
[-]NullPointerException in ShpGeoResourceInfor while executing search in SearchView[/-][+]NullPointerException in ShpGeoResourceInfo while executing search in SearchView[/+]