[Pydev-cvs] org.python.pydev.parser/src/org/python/pydev/parser/visitors NodeUtils.java,1.11,1.12
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-07-29 23:46:29
|
Update of /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser/visitors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27688/src/org/python/pydev/parser/visitors Modified Files: NodeUtils.java Log Message: Index: NodeUtils.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.parser/src/org/python/pydev/parser/visitors/NodeUtils.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** NodeUtils.java 29 Jul 2005 18:00:00 -0000 1.11 --- NodeUtils.java 29 Jul 2005 23:46:19 -0000 1.12 *************** *** 239,251 **** int col; String representationString = getFullRepresentationString(v); int i; if((i = representationString.indexOf('.') ) != -1){ representationString = representationString.substring(0,i); } ! try { ! col = getColDefinition(v) + representationString.length(); ! } catch (Exception e) { ! col = -1; ! } return col; } --- 239,251 ---- int col; String representationString = getFullRepresentationString(v); + if(representationString == null){ + return -1; + } + int i; if((i = representationString.indexOf('.') ) != -1){ representationString = representationString.substring(0,i); } ! col = getColDefinition(v) + representationString.length(); return col; } |