Bug 196306 [Commands] RegistryRadioState cannot properly initialize because of NPE
When a RegistryRadioState configured for a contributed command is being read from the registry, an NPE is thrown in RadioState, line 75: private final void activateMember(final RadioState state) { if (active != state) { 75-> active.setValue(Boolean.FALSE); } active = state; } This is because there is no initial active state and no way to provide a non-null value. I believe line 74 should read "if (active != state && active != null) {".
bundles/org.eclipse.jface/src/org/eclipse/jface/commands/RadioState.java
* </p>
 * <p>
 * Clients may instantiate or extend this interface.
 * </p>
 * 
 * @since 3.2
 */
public class RadioState extends ToggleState {
	/**
	 * The manager of radio groups within the application. This ensures that
	 * only one member of a radio group is active at any one time, and tracks
	 * group memberships.
	 */
	private static final class RadioStateManager {
		/**
		 * A group of radio states with the same identifier.
		 */
		private static final class RadioGroup implements IStateListener {
			/**
			 * The active state. If there is no active state, then this value is
			 * <code>null</code>.
			 */
			private RadioState active = null;
			/**
			 * The current members in this group. If there are no members, then
			 * this value is <code>nlistenerull</code>.
			 */
			private Set members = null;
			/**
			 * Activates a memeber. This checks to see if there are any other