Hello,
I have a problem with custom indicator and maybe that's a bug...
I have MY first custom indicator e.g.:
public class FirstIndicator implements IIndicator {
private IIndicatorContext context;
private Period period;
// ...
public IndicatorResult calculate(...) {
period = context.getFeedDescriptor().getPeriod();
// ...
}
}
and MY second custom indicator call the first one...
public class SecondIndicator implements IIndicator {
private IIndicatorContext context;
// ...
public IndicatorResult calculate(...) {
context.getIndicatorsProvider().getIndicator("First" [, context ]).calculate(...);
}
}
Compiling is without error...
But when I launch the second indicator, there is a NullPointerException ...
And when I looked nearly where it occurs, as a result of it is in FirstIndicator when calculate method calls getFeedDescriptor(), so probably it is a
null (alternatively getPeriod()).
And when I launch independently the first indicator, it all works correctly...
Regards
bojno