Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349372

Summary: Build fails if empty environment variables are present
Product: [Tools] PTP Reporter: John Eblen <jdeblen1>
Component: RDT.syncAssignee: John Eblen <jdeblen1>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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