Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 10392 invoked from network); 7 Feb 2007 11:27:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2007 11:27:28 -0000 Received: (qmail 78914 invoked by uid 500); 7 Feb 2007 11:27:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 78865 invoked by uid 500); 7 Feb 2007 11:27:34 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 78845 invoked by uid 99); 7 Feb 2007 11:27:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 03:27:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 03:27:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B00667142F7 for ; Wed, 7 Feb 2007 03:27:06 -0800 (PST) Message-ID: <33441201.1170847626718.JavaMail.jira@brutus> Date: Wed, 7 Feb 2007 03:27:06 -0800 (PST) From: "Sergey Krivenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2521) [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE In-Reply-To: <18870751.1165500261096.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470916 ] Sergey Krivenko commented on HARMONY-2521: ------------------------------------------ verified > [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE > ---------------------------------------------------------- > > Key: HARMONY-2521 > URL: https://issues.apache.org/jira/browse/HARMONY-2521 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Alexey A. Ivanov > Assigned To: Alexei Zakharov > Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch > > > import javax.swing.JTextPane; > public class Test { > public static void main(String[] args) { > new JTextPane().updateUI(); > System.out.println("passed OK"); > } > } > This simple code causes NPE on Harmony: > Exception in thread "main" java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:698) > at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50) > at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477) > at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77) > at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52) > at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32) > at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334) > at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59) > at java.awt.Component.firePropertyChangeImpl(Component.java:1666) > at java.awt.Component.firePropertyChange(Component.java:1680) > at java.awt.Component.setForeground(Component.java:322) > at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866) > at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929) > at javax.swing.JComponent.setUI(JComponent.java:1273) > at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587) > at Test.main(Test.java:5) > The code runs without any errors on RI. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.