code: public static long parseLong(String s, long l) {
  		if (s == null) {
  			return l;
  		}
  		try {
  			return Long.parseLong(s.trim());
  		} catch (NumberFormatException e) {
  			return l;
  		}
  	}
docs: Parse a <b>long</b> with a given default value <b>l</b>
  
  @return default value if null or not parsable