Skip to content

Opening WOLips properties in a non-WO project doesn't work #198

@hugithordarson

Description

@hugithordarson

What works

Opening project properties for a WO project, going to "WOLips Development", unchecking "WebObjects Project" and closing the properties panel causes WOLips-related natures and buildCommands to be removed from the project's .project file. As expected. All well and fine.

What doesn't

However, if you open the project properties again and attempt to open either of the WOLips panels, an exception occurs. WOLips project properties won't work unless you manually add a WOLips nature to .project again.

This applies to any non-WO project, meaning you can't turn an Eclipse project into a WOLips project without hacking around in the .project file. Apparently WOLips loses track of build.properties if a WO nature isn't present.

java.lang.NullPointerException: Cannot invoke "org.objectstyle.wolips.variables.BuildProperties.getPrincipalClass(boolean)" because the return value of "org.objectstyle.wolips.core.resources.types.project.ProjectAdapter.getBuildProperties()" is null
	at org.objectstyle.wolips.ui.propertypages.WOLipsDevelopmentPropertyPage._addBundleSettingsSection(WOLipsDevelopmentPropertyPage.java:290)
	at org.objectstyle.wolips.ui.propertypages.WOLipsDevelopmentPropertyPage._createContents(WOLipsDevelopmentPropertyPage.java:308)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions