[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.182, 1.183
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-02-14 11:42:02
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10164/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Encapsulated one of the common trhown errors in a try catch to get a log.error but not a exception running wild Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.182 retrieving revision 1.183 diff -C2 -d -r1.182 -r1.183 *** View.java 12 Feb 2007 13:44:12 -0000 1.182 --- View.java 14 Feb 2007 11:41:57 -0000 1.183 *************** *** 1755,1759 **** */ private void drawContour(Surface surface, GLUtessellator tess) { ! List vertices = surface.getVertices(); if (vertices.size() > 0) { Vertex first = (Vertex) vertices.get(0); --- 1755,1765 ---- */ private void drawContour(Surface surface, GLUtessellator tess) { ! List vertices = null; ! try { ! vertices = surface.getVertices(); ! } catch (Error e) { ! log.error("Didn't draw surface " + surface + " due to exception " + e); ! return; ! } if (vertices.size() > 0) { Vertex first = (Vertex) vertices.get(0); |