SF.net SVN: jython:[7172] trunk/jython/src/org/python/core/PyType.java
[email protected] Wed, 17 Nov 2010 20:44:46 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7172
http://jython.svn.sourceforge.net/jython/?rev=7172&view=rev
Author: otmarhumbel
Date: 2010-11-17 20:44:46 +0000 (Wed, 17 Nov 2010)
Log Message:
-----------
prevent null pointer exception
Modified Paths:
--------------
trunk/jython/src/org/python/core/PyType.java
Modified: trunk/jython/src/org/python/core/PyType.java
===================================================================
--- trunk/jython/src/org/python/core/PyType.java 2010-11-10 00:16:37 UTC (rev 7171)
+++ trunk/jython/src/org/python/core/PyType.java 2010-11-17 20:44:46 UTC (rev 7172)
@@ -1202,7 +1202,7 @@
}
static boolean hasBuilder(Class<?> c) {
- return classToBuilder.containsKey(c);
+ return classToBuilder != null && classToBuilder.containsKey(c);
}
private static TypeBuilder getBuilder(Class<?> c) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev