Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318140

Summary: [Null Pointer Exception]'null' monitor not handled in RSEFileStore.openInputStream(int, monitor) method.
Product: [Tools] Target Management Reporter: Loganathan <loganathan001>
Component: RSEAssignee: dsdp.tm.rse-inbox <tm.rse-inbox>
Status: NEW --- QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Loganathan CLA 2010-06-28 02:55:44 EDT
Build Identifier: M20080911-1700

I got a null pointer exception while I open my remote project (when I cancel the login dialog during opening it). I found its cause. 

Its because, in RSEFileStore.openInputStream(int, monitor), null value of monitor is not checked and directly called 'monitor.setCanceled(true)' in the catch clause. But when FileSystemResourceManager calls as 'descriptionStore.openInputStream(EFS.NONE, null)', it produces the 'null pointer exception' and shows the error in Platform dialog. 

Kindly fix this.
Thank you.

Reproducible: Always

Steps to Reproduce:
1. Go to RSEFileStore.openInputStream(int, monitor)
2. See in catch clause, that 'monitor.setCanceled(true)' called without null check.
3. U can see FileSystemResourceManager calls as 'descriptionStore.openInputStream(EFS.NONE, null)' in its read method.