Community
Participate
Working Groups
Build Identifier: The SQL Formatter (in Scout commons) throws a NullPointerException with blank String as input. Here example cases (as Unit Test): @Test public void testBlankString() throws Exception { Assert.assertEquals("", SqlFormatter.wellform("")); Assert.assertEquals("", SqlFormatter.wellform(" ")); Assert.assertEquals("", SqlFormatter.wellform(" ")); Assert.assertEquals("", SqlFormatter.wellform("\t")); } Reproducible: Always
Created attachment 209106 [details] Patch for bug 367988 Patch proposition for bug 367988. Makes the Unit-Test testBlankString() as proposed in the description OK.
Thanks a lot, Jeremie. Applied your patch and added your test to the existing SqlFormatterTest class.
ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train)