Bug 110443

Summary: RPM plugin: Uncaught exception on import
Product: [Retired] Red Hat Developer Suite Reporter: Keith Seitz <keiths>
Component: eclipseAssignee: Phil Muldoon <pmuldoon>
Status: CLOSED NEXTRELEASE QA Contact: Phil Muldoon <pmuldoon>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-19 21:26:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Keith Seitz 2003-11-19 16:54:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)
Gecko/20030716

Description of problem:
If you import a source RPM, click Browse... and Cancel, the following
message is printed to the console:

Unhandled exception caught in event loop.
Reason:
Argument cannot be null



Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Create new CDT project (File->New...->Project: C; Standard Make C
Project
2.File->Import... Select Source RPM; click Next
3.Click Browse... and Cancel
    

Actual Results:  log reports:
java.lang.IllegalArgumentException: Argument cannot be null
   at org.eclipse.swt.SWT.error(int,
java.lang.Throwable)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
   at
org.eclipse.swt.SWT.error(int)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
   at
org.eclipse.swt.widgets.Widget.error(int)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
   at
org.eclipse.swt.widgets.Combo.setText(java.lang.String)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
   at
com.redhat.eclipse.rpm.import_export.RPMImportPage$2.handleEvent(org.eclipse.swt.widgets.Event)(/usr/lib/eclipse/plugins/com.redhat.eclipse.rpm.import_export_1.0.0/libRPMimport_export.so)
   at
org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.widgets.Event)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
   at
org.eclipse.swt.widgets.Widget.sendEvent(org.eclipse.swt.widgets.Event)(/usr/lib/eclipse/plugins/org.eclipse.swt.gtk_2.1.1/ws/gtk/libswt.so)
[snip]


Expected Results:  Nothing should have happened. Absolutely nothing. :-)

Additional info:

Comment 1 Phil Muldoon 2003-11-19 21:26:49 UTC
Added null test for file dialog
Added File.isFile test for return value
Added src.rpm test for returned value