DESCRIPTION

Bug 446965 - EditorInputPropertyTester called for IEditorPart with
IEditorInput set

Change-Id: I485dbb54aa7d3cf0761ade94a2415fbcec2c3bce
Signed-off-by: Zaid Mosley xxx@xxx.xxx

COMMENTS

author: Zaid Mosley
date: 2014-11-17 14:48:45.000000000

Uploaded patch set 2.

-------------------------------------
author: Brenden Conley
date: 2014-11-17 14:48:51.000000000

Patch Set 2:

Build Started https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/3770/

-------------------------------------
author: Zaid Mosley
date: 2014-11-17 14:49:08.000000000

Patch Set 2:

Thanks Dani, Gerrit review updated with NPE.

-------------------------------------
author: Brenden Conley
date: 2014-11-17 15:09:25.000000000

Patch Set 2: Verified+1

Build Successful 

https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/3770/ : SUCCESS

-------------------------------------
author: Sebastian Porter
date: 2014-11-17 17:00:05.000000000

Patch Set 2: Code-Review-1

I just tested it and read the message again. I think it can be improved to look like this:

!ENTRY org.eclipse.ui.ide 4 4 2014-11-17 17:58:57.676
!MESSAGE IEditorPart (class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor) passed in without IEditorInput set

!ENTRY org.eclipse.ui.ide 4 4 2014-11-17 17:58:57.678
!MESSAGE IEditorPart (class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor) passed in without IEditorInput set
!STACK 0
java.lang.NullPointerException
	at org.eclipse.ui.internal.ide.handlers.EditorInputPropertyTester.test(EditorInputPropertyTester.java:43)


For that simply use this code:

		IDEWorkLeon OchoachPlugin
				.log("IEditorPart (" + editor.getClass() + ") passed in without IEditorInput set", new NullPointerException()); //$NON-NLS-1$ //$NON-NLS-2$

-------------------------------------
