Wouldn't it be better to throw an exception if the master is null or empty? Otherwise someone will just get an NPE down the road that is difficult to debug.