gvSIG bugs #5032

Falla Expression.isEmpty()

Added by Óscar Martínez about 5 years ago. Updated about 5 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:-
Category:-
Target version:2.5.0-2914 (rev. org.gvsig.desktop-2.0.242)
Severity:Minor Add-on version:
gvSIG version:2.5.0 Add-on build:
gvSIG build: Add-on resolve version:
Operative System: Add-on resolve build:
Keywords: Proyecto:
Has patch: Hito:
Add-on name:Unknown

Description

Con un código tal que así:

# encoding: utf-8

import gvsig
from org.gvsig.expressionevaluator import ExpressionEvaluatorLocator
from org.gvsig.fmap.dal import DALLocator

def main(*args):
  exp = ExpressionEvaluatorLocator.getManager().createExpression()
  exp.setPhrase("")
  exp.isEmpty()

Salta un NullPointerExpcetion que hace referencia a linea 64 del DefaultExpression


        if( !StringUtils.isBlank(this.userScript.getCode()) ) {

Esto también está haciendo que el picker del expression no muestre bien el backgroud rojo cuando no es valida la expresión.

Associated revisions

Revision 44182
Added by Joaquín del Cerro Murciano about 5 years ago

refs #5032, corregido un null pointer exception

History

#1 Updated by Óscar Martínez about 5 years ago

  • Status changed from New to Fixed

#2 Updated by Álvaro Anguix about 5 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF