Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-141

NPE in service file property tester

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: Projects, Projects > Common
    • Labels:
      None

      Description

      If you right-click on files that have no content description, the property testers that check for descriptions will throw NPE and cause the context menu's for eclipse to fail.

      java.lang.NullPointerException
      at com.liferay.ide.eclipse.project.ui.ServiceFilePropertyTester.test(ServiceFilePropertyTester.java:33)
      at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
      at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
      at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:91)
      at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)
      at org.eclipse.core.internal.expressions.OrExpression.evaluate(OrExpression.java:21)
      at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:91)
      at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:53)
      at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.isApplicableTo(ObjectActionContributor.java:374)
      at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:242)
      at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:303)
      at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:83)

        Attachments

          Activity

            People

            Assignee:
            gregory.amerson Gregory Amerson
            Reporter:
            gregory.amerson Gregory Amerson
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              12 years, 2 weeks, 6 days ago

                Packages

                Version Package
                1.0.1