|
|
Re: Resolution problems with Indigo: NPE in EclipsePlatformReaderType.getBestPlugin [message #903117 is a reply to message #903049] |
Wed, 22 August 2012 06:07 |
|
Hi Nicolas,
If you get it working OK, could you please enter a bugzilla and attach the patch there?
TIA,
- thomas
On 2012-08-21 20:20, Nicolas Rouquette wrote:
> I experimented with a simple patch which seems to work for me.
> To be sure, I have to create a proper patch feature with the change below, install it and see if it will work in the
> environment where I experienced the NPE.
>
>
> diff --git a/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
> b/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
> index ec8cfdd..d7003e5 100644
> --- a/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
> +++ b/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
> @@ -82,6 +82,8 @@
> if (activeMap.isEmpty()) {
> for (IPluginModelBase model : PluginRegistry.getAllModels()) {
> BundleDescription desc = model.getBundleDescription();
> + if (desc == null)
> + continue;
> String id = desc.getSymbolicName();
> IPluginModelBase[] mbArr = activeMap.get(id);
> if (mbArr == null)
>
>
> - Nicolas.
|
|
|
Re: Resolution problems with Indigo: NPE in EclipsePlatformReaderType.getBestPlugin [message #903121 is a reply to message #903117] |
Wed, 22 August 2012 06:35 |
|
Never mind. I found it. Thanks a lot.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387739
- thomas
On 2012-08-22 08:07, Thomas Hallgren wrote:
> Hi Nicolas,
>
> If you get it working OK, could you please enter a bugzilla and attach the patch there?
>
> TIA,
> - thomas
>
> On 2012-08-21 20:20, Nicolas Rouquette wrote:
>> I experimented with a simple patch which seems to work for me.
>> To be sure, I have to create a proper patch feature with the change below, install it and see if it will work in the
>> environment where I experienced the NPE.
>>
>>
>> diff --git a/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
>> b/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
>> index ec8cfdd..d7003e5 100644
>> --- a/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
>> +++ b/org.eclipse.buckminster.pde/src/java/org/eclipse/buckminster/pde/internal/EclipsePlatformReaderType.java
>> @@ -82,6 +82,8 @@
>> if (activeMap.isEmpty()) {
>> for (IPluginModelBase model : PluginRegistry.getAllModels()) {
>> BundleDescription desc = model.getBundleDescription();
>> + if (desc == null)
>> + continue;
>> String id = desc.getSymbolicName();
>> IPluginModelBase[] mbArr = activeMap.get(id);
>> if (mbArr == null)
>>
>>
>> - Nicolas.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03561 seconds