Bug 73459

Summary: Getting "save failed: null" requester when saving a include file
Product: [Tools] CDT Reporter: Sebastian Bauer <mail>
Component: cdt-coreAssignee: Alain Magloire <alain>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dave.daoust
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sebastian Bauer CLA 2004-09-08 12:00:19 EDT
If I save a modifed include file, which was openend previously by double 
clicking the file within the special includes folder of a project (the folder 
where I can see the includes which were discovered automatically) I get a 
requester with the contents "Save failed: null" and the file is of course not 
saved.

I'm using 2.0.1 of the CDT.
Comment 1 Alain Magloire CLA 2004-09-08 12:31:05 EDT
> I get a requester with the contents "Save failed: null" and the file is of
> course not saved.

Do you have write access to the file ?
Comment 2 Sebastian Bauer CLA 2004-09-08 12:52:03 EDT
Yes. I can save it using another texteditor.
Comment 3 Alain Magloire CLA 2004-09-08 16:08:05 EDT
> Yes. I can save it using another texteditor.

Allright, lets double check the code.
Comment 4 Alain Magloire CLA 2004-09-08 16:35:44 EDT
Dave,

this is a one liner fix. neglecting to check for null.

  if (resource == null) {
  }

I would say to take the opportunity to fix this for
2.0.2 also.

Risk --> is none
advantages --> good.
Comment 5 Alain Magloire CLA 2004-09-08 16:46:24 EDT
Fix in the head.

Fix in the CDT_2_0 branch, if it makes for 2.0.2 cool
if not it will be available for the ISV own distributions.