Menu

#2 Handle null response from Perl script

open
nobody
None
5
2007-10-04
2007-10-04
fyneman
No

In PerlEngineImpl.java eval method, if the Perl script never talks back, the header will be null.

Suggest adding the following code:

if (header == null) { // If the Perl script never talks back,
return null; // the header will be null
}

as in

while (true) {
String header = input.readLine();

if (header == null) { // If the Perl script never talks back, header will be null
return null; // the header will be null
}

if (header.equals("BEGIN-RESPONSE")) {
...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.