Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 404233 - NPE when clearing trace file
Summary: NPE when clearing trace file
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Kepler M7   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-24 09:14 EDT by Christian Georgi CLA
Modified: 2013-04-02 11:10 EDT (History)
1 user (show)

See Also:


Attachments
Patch for framework (1.34 KB, patch)
2013-03-24 09:15 EDT, Christian Georgi CLA
no flags Details | Diff
Patch for equinox/bundles (1.05 KB, patch)
2013-03-24 09:15 EDT, Christian Georgi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Georgi CLA 2013-03-24 09:14:09 EDT
FrameworkDebugOptions.setFile(File) fails with a NPE if called with null (indicating no file to be used but console).
The attached patches handle this case in FrameworkDebugOptions.setFile() and DataArea.getTraceLocation().
Comment 1 Christian Georgi CLA 2013-03-24 09:15:09 EDT
Created attachment 228968 [details]
Patch for framework
Comment 2 Christian Georgi CLA 2013-03-24 09:15:35 EDT
Created attachment 228969 [details]
Patch for equinox/bundles
Comment 3 Thomas Watson CLA 2013-03-25 10:47:17 EDT
I will review the patches for M7.  Thanks!