Revision: 1567 Author: jasonpmorrison Date: 2006-08-14 21:18:13 -0700 (Mon, 14 Aug 2006) ViewCVS: http://svn.sourceforge.net/rubyeclipse/?rev=1567&view=rev Log Message: ----------- * Catch a stray null in RubyAbstractEditor Modified Paths: -------------- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java 2006-08-15 04:15:27 UTC (rev 1566) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java 2006-08-15 04:18:13 UTC (rev 1567) @@ -1483,7 +1483,7 @@ fOccurrencesFinderJobCanceler= null; } - if (fPostSelectionListener != null) { + if ((fPostSelectionListener != null) && ( getSourceViewer() != null ) && ( getSourceViewer().getSelectionProvider() != null ) ) { IPostSelectionProvider postSelectionProvider = (IPostSelectionProvider)getSourceViewer().getSelectionProvider(); postSelectionProvider.removePostSelectionChangedListener(fPostSelectionListener); fPostSelectionListener = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |