- if(isExcepted()) {
-
- try {
- proc.exception(graph, (Throwable)getResult());
- } catch (Throwable t) {
- t.printStackTrace();
- }
-
- } else {
-
- try {
- proc.execute(graph, (T)getResult());
- } catch (Throwable t) {
- t.printStackTrace();
- }
-
- }
+ if(proc != null) {
+ if(isExcepted()) {
+ try {
+ proc.exception(graph, (Throwable)getResult());
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ } else {
+ try {
+ proc.execute(graph, (T)getResult());
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
+ }