Changeset 9d52ef5


Ignore:
Timestamp:
Jun 11, 2013 1:21:49 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
933ad52
Parents:
34748d23
Message:

Explicit check for empty values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/sam/java/src/net/i2p/sam/SAMUtils.java

    r34748d23 r9d52ef5  
    167167            param = token.substring(0, pos);
    168168            value.append(token.substring(pos+1));
     169            if (value.length() == 0)
     170                throw new SAMException("Empty value for param "+param);
    169171            if (value.charAt(0) == '"') {
    170172                while ( (i < ntoks) && (value.lastIndexOf("\"") <= 0) ) {
Note: See TracChangeset for help on using the changeset viewer.