| Summary: | SqlFormatter: NPE with blank Strings | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jeremie Bresson <dev> | ||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ivan.motsch, zimmermann | ||||
| Version: | unspecified | Flags: | zimmermann:
juno+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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) |
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