if ((ls == null) && log.isDebugEnabled())
if ((ls == null) && (log != null) && log.isDebugEnabled())
  public void setLoggingService(LoggingService ls) {    if ((ls == null) && log.isDebugEnabled())      log.debug("Logger ("+me+")being reset to null");    log = ls;    if ((log != null) && log.isDebugEnabled())      log.debug("Logging ("+me+")initialized");  }