I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 9d52ef5f authored by zab2's avatar zab2
Browse files

Explicit check for empty values

parent 34748d23
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,8 @@ public class SAMUtils {
}
param = token.substring(0, pos);
value.append(token.substring(pos+1));
if (value.length() == 0)
throw new SAMException("Empty value for param "+param);
if (value.charAt(0) == '"') {
while ( (i < ntoks) && (value.lastIndexOf("\"") <= 0) ) {
value.append(' ').append(tok.nextToken());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment