Revision 30131 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameLegend.java

View differences:

FFrameLegend.java
543 543
                        for (int j = 0; j < cli.getValues().length; j++) {
544 544
                            String s = cli.getDescriptions()[j];
545 545

  
546
                            if (s.length() > m_max) {
546
                            if (s != null && s.length() > m_max) {
547 547
                                m_max = s.length();
548 548
                            }
549 549

  
......
553 553
                	}else{
554 554
                		  String s = layer.getName();
555 555

  
556
                          if (s.length() > m_max) {
556
                          if (s != null && s.length() > m_max) {
557 557
                              m_max = s.length();
558 558
                          }
559 559

  

Also available in: Unified diff