Message801

Author reinouts
Recipients
Date 2002-12-15.17:33:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In a project I am working on I want to get a list of
items that are in the __dict__ dictionary of an inner
class. This produces the NPE shown below. If needed I
can provide the code. This happens on both Solaris and
Linux JVMs.

Jython 2.1 on java1.4.1_01 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> 
>>> mc = MessageCatalog()
>>> mc.ch.__dict__
{'Language-Team': 'Dutch <vertaling@nl.linux.org>',
'MIME-Version': '1.0', 'POT-Creation-Date':
('2002-12-15 17:27', 1), 'PO-Revision-Date':
('2002-12-15 17:27', 1), 'Content-Transfer-Encoding':
'8bit', 'Project-Id-Version': '', 'Content-Type':
'text/plain; charset=utf-8', '# ': '',
'Last-Translator': ''}
>>> list(mc.ch.__dict__)
Traceback (innermost last):
  File "<console>", line 1, in ?
java.lang.NullPointerException
	at org.python.core.PyList.toString(PyList.java)
	at org.python.core.PyObject.__repr__(PyObject.java)
	at
org.python.core.PySystemState.displayhook(PySystemState.java)
	at
org.python.core.PySystemStateFunctions.__call__(PySystemState.java)
	at org.python.core.PyObject.invoke(PyObject.java)
	at org.python.core.Py.printResult(Py.java)
	at org.python.pycode._pyx40.f$0(<console>:1)
	at org.python.pycode._pyx40.call_function(<console>)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyCode.call(PyCode.java)
	at org.python.core.Py.runCode(Py.java)
	at org.python.core.Py.exec(Py.java)
	at
org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
	at
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
	at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
	at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
	at jython.JeditConsole.pushLine(JeditConsole.java:58)
	at jython.LineCommand.doExecute(JeditConsole.java:191)
	at jython.AbstractCommand.execute(JeditConsole.java:141)
	at jython.JythonExecutor.run(JythonExecutor.java:298)
	at java.lang.Thread.run(Thread.java:536)

java.lang.NullPointerException:
java.lang.NullPointerException


History
Date User Action Args
2008-02-20 17:17:12adminlinkissue654142 messages
2008-02-20 17:17:12admincreate