Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Debugger tab broken

Chris,

Yes, this is really broken, I should have looked at it more carefully. I've checked in a fix which should get built soon, and you'll be able to update from the ptp/builds/juno/nightly repository.

Greg

On May 30, 2012, at 2:39 PM, Christopher Navarro wrote:

> It looks like the new extension point to set the sdm path broke the Debugger tab (at least for me under Ubuntu 64 bit). I think there needs to be an extra check for extension length since the extension point should return non-null since it's defined. Something like:
> 
> private String getSDMDefaultPath() {
>        IExtensionRegistry registry = Platform.getExtensionRegistry();
>        IExtensionPoint extensionPoint = registry.getExtensionPoint(SDMDebugUIPlugin.getUniqueIdentifier(), EXTENSION_POINT_ID);
>        if (extensionPoint != null) {
>            final IExtension[] extensions = extensionPoint.getExtensions();
>            if (extensions.length > 0) {
>                IExtension ext = extensions[0];
>                final IConfigurationElement[] elements = ext.getConfigurationElements();
>                for (IConfigurationElement ce : elements) {
>                    String attr = ce.getAttribute(ATTR_PATH);
>                    if (attr != null) {
>                        return attr;
>                    }
> 
>                }
>            }
>        }
> 
>        return EMPTY_STRING;
>    }
> 
> Otherwise, I get an array index out of bounds exception.
> 
> Chris
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top