Commit 6384325b by Roman Kennke Committed by Michael Koch

re PR libgcj/21064 ([4.0 only] StyleContext.addStyle causes NullPointerException)

2005-04-19  Roman Kennke  <roman@kennke.org>

	PR libgcj/21064
	* javax/swing/text/StyleContext.java
	(NamedStyle.setResolveParent): Added null
	pointer check.

From-SVN: r98402
parent 69ae1f74
2005-04-19 Roman Kennke <roman@kennke.org>
PR libgcj/21064
* javax/swing/text/StyleContext.java
(NamedStyle.setResolveParent): Added null
pointer check.
2005-04-19 Michael Koch <konqueror@gmx.de> 2005-04-19 Michael Koch <konqueror@gmx.de>
* java/rmi/server/RemoteObject.java: * java/rmi/server/RemoteObject.java:
......
...@@ -203,7 +203,11 @@ public class StyleContext ...@@ -203,7 +203,11 @@ public class StyleContext
public void setResolveParent(AttributeSet parent) public void setResolveParent(AttributeSet parent)
{ {
attributes = StyleContext.this.addAttribute(attributes, ResolveAttribute, parent); if (parent != null)
{
attributes = StyleContext.this.addAttribute
(attributes, ResolveAttribute, parent);
}
fireStateChanged(); fireStateChanged();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment