name-parser-api/src/test/java/org/gbif/nameparser/NameParserTest.java
/**
   * Avoid nPEs and other exceptions for very short non names and other extremes found in occurrences.
   */
Avoid nPEs and other exceptions for very short non names and other extremes found in occurrences.
Avoid nPEs and other exceptions for very short non names and other extremes found in occurrences .
@Test
  public void avoidNPE() throws Exception {
    assertNoName("\\");
    assertNoName(".");
    assertNoName("@");
    assertNoName("&nbsp;");
    assertNoName("X");
    assertNoName("a");
    assertNoName("-,.#");
    assertNoName(" .");
  }
@ Test public void avoidNPE ( ) throws Exception { assertNoName ( "\\" ) ; assertNoName ( "." ) ; assertNoName ( "@" ) ; assertNoName ( "&nbsp;" ) ; assertNoName ( "X" ) ; assertNoName ( "a" ) ; assertNoName ( "-,.#" ) ; assertNoName ( " ." ) ; }
Avoid nPEs and other exceptions for very short non names and other extremes found in occurrences.
Avoid nPEs and other exceptions for very short non names and other extremes found in occurrences .