Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31088 invoked from network); 30 Jan 2007 16:13:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2007 16:13:55 -0000 Received: (qmail 82389 invoked by uid 500); 30 Jan 2007 16:14:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 82332 invoked by uid 500); 30 Jan 2007 16:14:00 -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 82318 invoked by uid 99); 30 Jan 2007 16:14:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 08:14:00 -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; Tue, 30 Jan 2007 08:13:54 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C140A7142D4 for ; Tue, 30 Jan 2007 08:13:33 -0800 (PST) Message-ID: <30687411.1170173613788.JavaMail.jira@brutus> Date: Tue, 30 Jan 2007 08:13:33 -0800 (PST) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (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:all-tabpanel ] Alexei Zakharov resolved HARMONY-2521. -------------------------------------- Resolution: Fixed Thanks Sergey, changes were committed at the revision 501436. Please verify. I've also removed BasicTextUITest from the exclude list. > [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.