Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 27885 Details for
Bug 111664
PropertiesBrowserPage throws NPE if there is no structured selection when the label provider changed event is handled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
PropertiesBrowserPage.txt (text/plain), 1.03 KB, created by
Dusko
on 2005-10-05 14:22:04 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Dusko
Created:
2005-10-05 14:22:04 EDT
Size:
1.03 KB
patch
obsolete
>Index: PropertiesBrowserPage.java >=================================================================== >RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui.properties/src/org/eclipse/gmf/runtime/diagram/ui/properties/views/PropertiesBrowserPage.java,v >retrieving revision 1.3 >diff -u -r1.3 PropertiesBrowserPage.java >--- PropertiesBrowserPage.java 21 Sep 2005 20:41:05 -0000 1.3 >+++ PropertiesBrowserPage.java 5 Oct 2005 18:03:46 -0000 >@@ -378,10 +378,14 @@ > super.labelProviderChanged(event); > return; > } >- >- List selection = new ArrayList(); > >- for (Iterator e = getSelectedElements().iterator(); e.hasNext();) { >+ IStructuredSelection structuredSelection = getSelectedElements(); >+ if (structuredSelection == null) { >+ return; >+ } >+ >+ List selection = new ArrayList(); >+ for (Iterator e = structuredSelection.iterator(); e.hasNext();) { > Object next = e.next(); > if (next instanceof IAdaptable) { > Object object = ((IAdaptable) next).getAdapter(EObject.class);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 111664
: 27885