if (splitjoin.getSplitter() instanceof NullSplitter)
if (splitjoin.getSplitter() instanceof NullSplitter || splitjoin.getSplitter().getConsumption() == 0)
    public int getSplitterNumWork()    {        if (splitjoin.getSplitter() instanceof NullSplitter)        {            return 0;        }        else        {            if (splitterFineGrained)            {                return splitjoin.getSplitter().getConsumption();            }            else                return 1;        }    }