Bug 73459 - Getting "save failed: null" requester when saving a include file
Summary: Getting "save failed: null" requester when saving a include file
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 12:00 EDT by Sebastian Bauer CLA
Modified: 2004-09-08 16:46 EDT (History)
1 user (show)

See Also:


Attachments

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