Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318140 - [Null Pointer Exception]'null' monitor not handled in RSEFileStore.openInputStream(int, monitor) method.
Summary: [Null Pointer Exception]'null' monitor not handled in RSEFileStore.openInputS...
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 02:55 EDT by Loganathan CLA
Modified: 2010-06-28 02:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.