Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349372 - Build fails if empty environment variables are present
Summary: Build fails if empty environment variables are present
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT.sync (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: John Eblen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 16:39 EDT by John Eblen CLA
Modified: 2011-06-15 09:38 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 John Eblen CLA 2011-06-14 16:39:43 EDT
A java.lang.ArrayIndexOutOfBoundsException occurs on line 180 of
rdt.sync.core.remotemake.SyncCommandLauncher when parsing an empty environment variable. Steps to reproduce:

1) Set an empty environment variable ("setenv EMPTY_VAR" in csh, for example)

2) Start Eclipse and create a new synchronization project "newProject"

3) Build Workspace configuration

This causes the following error:

'Build Project' has encountered a problem

Errors occurred during the build

Detail View:
Errors occurred during the build.
    Errors running builder 'CDT Builder' on project 'newProject'.
       1
       1
    1
    1

Fortunately, this is easy to fix. I'll submit a patch later today.
Comment 1 John Eblen CLA 2011-06-15 09:38:31 EDT
Patch submitted