public static void assertNotNull(Object t, String msg, Logger logger) {
    if(t == null) {
      if(logger != null) {
        logger.warn(msg);
      }
      throw new IllegalArgumentException(msg);
    }
  }
Used by various tests to make sure the path is safe for Windows
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java