Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-136

When migrating from ivyde alpha to ivyde beta eclipse is throwing NPE at startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0.beta1
    • 2.0.0.final
    • None
    • None
    • Windows

    Description

      When migrating from ivyde alpha to ivyde beta eclipse is throwing NPE at startup.

      The problem seems to be in IvyDEPreferenceStoreHelper. This class tries to invoke IPreferenceStore.putValue with null newValue but the implementation from
      org.eclipse.core.internal.preferences.EclipsePreferences does not accept nulls.

      public void put(String key, String newValue)
      {
      if(key == null || newValue == null)
      throw new NullPointerException();
      String oldValue = internalPut(key, newValue);
      if(!newValue.equals(oldValue))

      { makeDirty(); firePreferenceEvent(key, oldValue, newValue); }

      }

      Attachments

        1. rad_stack_trace.txt
          33 kB
          Daniel Becheanu
        2. Patch_IvyDEPreferenceStoreHelper.txt
          1 kB
          Daniel Becheanu

        Issue Links

          Activity

            People

              hibou Nicolas Lalevée
              daniel.becheanu Daniel Becheanu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: