Project: Birt
Bug 221623 BIRT throw exception when the report design is provided as an InputStream
Reported: 2008-03-05 21:34:40 | Status: resolved fixed

When report design is provide as an input stream, Module will give that report design a name "<stream>". In DataAdapterTopLevelScope.getParamValue(), we have following code: String reportConfigName = designFileName.substring( 0, designFileName.length( ) - "rptdesign".length( ) ) + "rptconfig"; This, however will lead to exception for when designFileName == <stream> its length is less than that of "rptdesign". Meanwhile, it is not guaranteed that user will use a file with ext. "rptdesign".

Files changed in fix:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/script/DataAdapterTopLevelScope.java