|
Re: NPE in XSDAnnotationItemProvider [message #32628 is a reply to message #32560] |
Mon, 03 November 2003 12:46 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------71694B39F14BD2205687AFBC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lance,
I'd be more tempted to prevent null from being added to the list in the
first place...
Lance Phillips wrote:
> Ed, Due to a problem with the way were reading in models, we were
> creating XSDAnnotations with null elements. We haven't quite solved
> that yet, but an interesting side effect is a NPE in the
> XSDAnnotationItemProvider. It would seem that the item provider
> should be a bit more fault tolerant as this exception takes down the
> property sheet page and clutters up the log. Here is the stack... Oct
> 31, 2003 12:48:08.062 [main|0] ERROR <com.metamatrix.modeler.ui|0>
> java.lang.NullPointerExceptionjava.lang.NullPointerException at
> org.eclipse.xsd.provider.XSDAnnotationItemProvider.getText(X SDAnnotationItemProvider.java:109)
>
> at
> org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator.ge tText(AdapterFactoryItemDelegator.java:93)
>
> at
> org.eclipse.emf.edit.provider.ItemPropertyDescriptor$ItemDel egator.getText(ItemPropertyDescriptor.java:171)
>
> at
> org.eclipse.emf.edit.ui.provider.PropertyDescriptor$1.getTex t(PropertyDescriptor.java:140)...
--------------71694B39F14BD2205687AFBC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Lance,
<p>I'd be more tempted to prevent null from being added to the list in
the first place...
<br>
<p>Lance Phillips wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Ed,</font></font><font face="Arial"><font size=-1>
Due to a problem with the way were reading in models, we were creating
XSDAnnotations with null elements. We haven't quite solved that yet,
but an interesting side effect is a NPE in the XSDAnnotationItemProvider.
It would seem that the item provider should be a bit more fault tolerant
as this exception takes down the property sheet page and clutters up the
log. Here is the stack...</font></font> <font face="Arial"><font size=-1>Oct
31, 2003 12:48:08.062 [main|0] ERROR <com.metamatrix.modeler.ui|0> java.lang.NullPointerException</font></font><font face="Arial"><font size=-1>java.lang.NullPointerException</font></font><font face="Arial"><font size=-1>at
org.eclipse.xsd.provider.XSDAnnotationItemProvider.getText(X SDAnnotationItemProvider.java:109) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator.ge tText(AdapterFactoryItemDelegator.java:93) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.provider.ItemPropertyDescriptor$ItemDel egator.getText(ItemPropertyDescriptor.java:171) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.ui.provider.PropertyDescriptor$1.getTex t(PropertyDescriptor.java:140)... </font></font></blockquote>
</html>
--------------71694B39F14BD2205687AFBC--
|
|
|
Re: NPE in XSDAnnotationItemProvider [message #580387 is a reply to message #32560] |
Mon, 03 November 2003 12:46 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
--------------71694B39F14BD2205687AFBC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lance,
I'd be more tempted to prevent null from being added to the list in the
first place...
Lance Phillips wrote:
> Ed, Due to a problem with the way were reading in models, we were
> creating XSDAnnotations with null elements. We haven't quite solved
> that yet, but an interesting side effect is a NPE in the
> XSDAnnotationItemProvider. It would seem that the item provider
> should be a bit more fault tolerant as this exception takes down the
> property sheet page and clutters up the log. Here is the stack... Oct
> 31, 2003 12:48:08.062 [main|0] ERROR <com.metamatrix.modeler.ui|0>
> java.lang.NullPointerExceptionjava.lang.NullPointerException at
> org.eclipse.xsd.provider.XSDAnnotationItemProvider.getText(X SDAnnotationItemProvider.java:109)
>
> at
> org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator.ge tText(AdapterFactoryItemDelegator.java:93)
>
> at
> org.eclipse.emf.edit.provider.ItemPropertyDescriptor$ItemDel egator.getText(ItemPropertyDescriptor.java:171)
>
> at
> org.eclipse.emf.edit.ui.provider.PropertyDescriptor$1.getTex t(PropertyDescriptor.java:140)...
--------------71694B39F14BD2205687AFBC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Lance,
<p>I'd be more tempted to prevent null from being added to the list in
the first place...
<br>
<p>Lance Phillips wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Ed,</font></font><font face="Arial"><font size=-1>
Due to a problem with the way were reading in models, we were creating
XSDAnnotations with null elements. We haven't quite solved that yet,
but an interesting side effect is a NPE in the XSDAnnotationItemProvider.
It would seem that the item provider should be a bit more fault tolerant
as this exception takes down the property sheet page and clutters up the
log. Here is the stack...</font></font> <font face="Arial"><font size=-1>Oct
31, 2003 12:48:08.062 [main|0] ERROR <com.metamatrix.modeler.ui|0> java.lang.NullPointerException</font></font><font face="Arial"><font size=-1>java.lang.NullPointerException</font></font><font face="Arial"><font size=-1>at
org.eclipse.xsd.provider.XSDAnnotationItemProvider.getText(X SDAnnotationItemProvider.java:109) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator.ge tText(AdapterFactoryItemDelegator.java:93) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.provider.ItemPropertyDescriptor$ItemDel egator.getText(ItemPropertyDescriptor.java:171) </font></font>
<p><font face="Arial"><font size=-1>at org.eclipse.emf.edit.ui.provider.PropertyDescriptor$1.getTex t(PropertyDescriptor.java:140)... </font></font></blockquote>
</html>
--------------71694B39F14BD2205687AFBC--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03088 seconds