hi, pd crashes with pdj, when I send a list, that contains a null element. (if I understand that correctly.) I think there should be an exception thrown to the console, but pd just crashes. it is easy to fix, but still, I would not expect pd to crash, or am I doing something wrong? attached the patch and java file. marius.
// this class crashes pd
import com.cycling74.max.*;
// here's our class
public class null_bug extends MaxObject {
// this gets called on init of the max/pd object [RmiClient]
public null_bug() {
int numOutlets = 1;
int numInlets = 1;
declareIO(numInlets,numOutlets);
}
public void bang() {
try {
String outputList[] = new String[2];
outputList[0] = "test";
outlet(0, outputList);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
#N canvas 543 309 450 300 10; #X obj 172 101 pdj null_bug; #X msg 172 77 bang; #X connect 1 0 0 0;