Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[categorized] Fix blank layers when using categorized renderer
Fixes #21188
  • Loading branch information
nyalldawson committed Feb 12, 2019
1 parent 51a4981 commit 7714bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgscategorizedsymbolrenderer.cpp
Expand Up @@ -533,7 +533,7 @@ QString QgsCategorizedSymbolRenderer::filter( const QgsFields &fields )

for ( const QgsRendererCategory &cat : qgis::as_const( mCategories ) )
{
if ( cat.value() == "" )
if ( cat.value() == "" || cat.value().isNull() )
{
hasDefault = true;
defaultActive = cat.renderState();
Expand Down

0 comments on commit 7714bfb

Please sign in to comment.