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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0.beta1
    • Fix Version/s: 2.0.0.final
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: