Bug 39242 [misc] NPE in JavaOutlinePage.getMainType
Build: I20030618 I found this NullPointerException in my log file... I cannot figure out what I was editing as there is no local history that corresponds to that time. It is possible that I was browsing read-only types in the repository view. Log file attached.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
public ClassOnlyAction() {
				super();
				WorkbenchHelp.setHelp(this, IJavaHelpContextIds.GO_INTO_TOP_LEVEL_TYPE_ACTION);
				setText(JavaEditorMessages.getString("JavaOutlinePage.GoIntoTopLevelType.label")); 
				setToolTipText(JavaEditorMessages.getString("JavaOutlinePage.GoIntoTopLevelType.tooltip")); 
				setDescription(JavaEditorMessages.getString("JavaOutlinePage.GoIntoTopLevelType.description")); 
				JavaPluginImages.setLocalImageDescriptors(this, "gointo_toplevel_type.gif"); 
				IPreferenceStore preferenceStore= JavaPlugin.getDefault().getPreferenceStore();
				boolean showclass= preferenceStore.getBoolean("GoIntoTopLevelTypeAction.isChecked"); 
				setTopLevelTypeOnly(showclass);
			}
			/*
			 * @see org.eclipse.jface.action.Action#run()
			 */