Revision 13657

View differences:

branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toc/gui/FPopupMenu.java
331 331
			}
332 332
		}
333 333
		//comprobamos si el ultimo elemento es un seprardor
334
		if (this.getComponent(this.getComponentCount()-1) instanceof Separator) {
334
		if (this.getComponentCount()>0 && this.getComponent(this.getComponentCount()-1) instanceof Separator) {
335 335
			//Si lo es lo eliminamos
336 336
			this.remove(this.getComponentCount()-1);
337 337
		}

Also available in: Unified diff