Skip to content

Commit

Permalink
Add the null and not empty check for the chart view of the x tab
Browse files Browse the repository at this point in the history
  • Loading branch information
vnijhawa committed Oct 25, 2018
1 parent a8932ce commit 55fe9d7
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -256,7 +256,11 @@ public static boolean isEmpty( IBaseResultSet set ) throws BirtException
} else if ( set instanceof ICubeResultSet )
{
CubeCursor cursor = (( (ICubeResultSet) set ).getCubeCursor());
return cursor.getOrdinateEdge().size() != 0;
if(cursor != null)
{
List edges = cursor.getOrdinateEdge();
return edges != null && !edges.isEmpty();
}
}

return false;
Expand Down

0 comments on commit 55fe9d7

Please sign in to comment.