Changeset 374:4828248ca2af in finroc_tools_gui-java


Ignore:
Timestamp:
23.02.2022 08:41:03 (3 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
default
Phase:
public
Tags:
tip
Message:

Fixes bug in property/port editor adapter that allows to edit string lists (occured with empty ContainsStrings objects)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • util/propertyeditor/StandardComponentFactory.java

    r370 r374  
    130130            } 
    131131            String s = sb.toString(); 
    132             return s.substring(0, s.length() - 1); 
     132            return s.substring(0, Math.max(0, s.length() - 1)); 
    133133 
    134134            /*String s = ""; 
Note: See TracChangeset for help on using the changeset viewer.