Issue1296

classification
Title: NullPointerException when using None with 2.5b3 (2.2.1 is ok)
Type: crash Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: alv131, fwierzbicki
Priority: Keywords:

Created on 2009-03-31.07:47:21 by alv131, last changed 2009-03-31.17:50:00 by fwierzbicki.

Messages
msg4400 (view) Author: (alv131) Date: 2009-03-31.07:47:20
2.5b3: "jframe_02.py" and "jframe_04.py" have problems when using None.
"jframe_03.py" is ok.
2.2.1: all of them are ok.

jframe_02.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

# EXCEPTION: locationRelativeTo=None
f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300),
locationRelativeTo=None)
# f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300))
f.setVisible(1)

jframe_03.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

f = JFrame('Hello, World!')
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE)
f.setSize(300, 300)
# NO PROBLEMS HERE
f.setLocationRelativeTo(None)
f.setVisible(1)

jframe_04.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

f = JFrame('Hello, World!')
f.defaultCloseOperation = WindowConstants.DISPOSE_ON_CLOSE
f.size = (300, 300)
# EXCEPTION on the next line!
f.locationRelativeTo = None
f.setVisible(1)
msg4404 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-31.17:49:59
It looks like fixing issue1295 in r6137 fixed this as well.
History
Date User Action Args
2009-03-31 17:50:00fwierzbickisetstatus: open -> closed
assignee: fwierzbicki
resolution: fixed
messages: + msg4404
nosy: + fwierzbicki
2009-03-31 07:47:21alv131create