Revision: 1924
http://svn.sourceforge.net/vexi/?rev=1924&view=rev
Author: clrg
Date: 2007-07-05 20:42:01 -0700 (Thu, 05 Jul 2007)
Log Message:
-----------
Bandaid NPE when closing a surface
Modified Paths:
--------------
core/trunk/org.vexi.core/src/org/vexi/plat/AWT.java
Modified: core/trunk/org.vexi.core/src/org/vexi/plat/AWT.java
===================================================================
--- core/trunk/org.vexi.core/src/org/vexi/plat/AWT.java 2007-07-05 12:30:49 UTC
(rev 1923)
+++ core/trunk/org.vexi.core/src/org/vexi/plat/AWT.java 2007-07-06 03:42:01 UTC
(rev 1924)
@@ -329,12 +329,14 @@
public void blit(PixelBuffer s, int sx, int sy, int dx, int dy, int
dx2, int dy2) {
discoverInsets();
- window.getGraphics().drawImage(((AWTPixelBuffer)s).i,
+ try {
+ window.getGraphics().drawImage(((AWTPixelBuffer)s).i,
dx + leftInset,
dy + topInset,
dx2 + leftInset,
dy2 + topInset,
sx, sy, sx + (dx2 - dx), sy + (dy2 - dy),
null);
+ } catch (NullPointerException npe) { /* FIXME: handle this
gracefully */ }
}
/** if (component instanceof Frame) then frame == window else frame ==
null */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn