We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ef155 commit 98ad83aCopy full SHA for 98ad83a
mapquery.c
@@ -1617,7 +1617,7 @@ int msQueryByFeatures(mapObj *map)
1617
1618
} /* next selection shape */
1619
1620
- if(lp->resultcache->numresults == 0) msLayerClose(lp); /* no need to keep the layer open */
+ if(lp->resultcache == NULL || lp->resultcache->numresults == 0) msLayerClose(lp); /* no need to keep the layer open */
1621
} /* next layer */
1622
1623
/* was anything found? */
0 commit comments