From 6a00c1115475fe99f692c9e18519981effcc1d34 Mon Sep 17 00:00:00 2001 From: Oleg Krasilnikov Date: Mon, 3 Mar 2008 10:46:12 +0000 Subject: [PATCH] Bug #220838 : null pointer exception in HoldsOption.java when converting tools --- .../internal/core/HoldsOptions.java | 161 +++++++++--------- 1 file changed, 78 insertions(+), 83 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java index 74c7052c793..29c56380404 100644 --- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java +++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HoldsOptions.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2007 Symbian Ltd and others. + * Copyright (c) 2005, 2008 Symbian Ltd and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,6 +30,9 @@ import org.eclipse.cdt.managedbuilder.core.IOptionCategory; import org.eclipse.cdt.managedbuilder.core.IResourceInfo; import org.eclipse.cdt.managedbuilder.core.ITool; import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager; +import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; /** * Implements the functionality that is needed to hold options and option @@ -58,11 +61,11 @@ public abstract class HoldsOptions extends BuildObject implements IHoldsOptions, // Members that must have the same values on creation as the derived class private boolean resolved; // Parent and children - private Vector categoryIds; - private Map categoryMap; - private List childOptionCategories; - private Vector optionList; - private Map optionMap; + private Vector categoryIds; + private Map categoryMap; + private List childOptionCategories; + private Vector