commit | 2109e00b8c0dd5b4a45b789a96c999818265be7c | [log] [tgz] |
---|---|---|
author | Eric Rowe <erowe@google.com> | Wed Jun 19 16:51:20 2013 -0700 |
committer | Eric Rowe <erowe@google.com> | Wed Jun 19 16:57:40 2013 -0700 |
tree | 2e89988662b4fdd6a905c4bb4c41504b8c34db5c | |
parent | 2bfdd6f316369510613ef05f741f301a95e06381 [diff] |
Make all parsers return null. When a parser receives an empty input ("".equals(input.trim())), then return null, not new IItem() with no input. If there is input but invalid, a non-null is still returned. This fixes the case in bugreports where the section is listed but there is no input. For example: ----- SECTION 1 ------ ----- SECTION 2 ------ text In this case, the section 1 parser would return null. Change-Id: Ifdfabc3bc40aa2303fcbc11ec6ccbf63167d54ae