gvSIG bugs #5032
Falla Expression.isEmpty()
| Status: | Closed | % Done: | 0% | |
|---|---|---|---|---|
| Priority: | Normal | Spent 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
refs #5032, corregido un null pointer exception
History
#1
Updated by Óscar Martínez about 7 years ago
- Status changed from New to Fixed
#2
Updated by Álvaro Anguix about 7 years ago
- Status changed from Fixed to Closed