Forum Discussion

Mason's avatar
Mason
Frequent Contributor
15 years ago

[RESOLVED] Cannot invoke method setRequestHeader on null object

I have a RequestFilter.filterRequest event with the following code:

def subscriber_NTN = context.getProperty("subscriber.NTN");
log.info ("subscriber_NTN = " + subscriber_NTN);
def NTN_id_header = context.getProperty("PostMethod")
NTN_id_header.setRequestHeader("NTN_id", subscriber_NTN);


What's interesting is, the log shows the subscriber_NTN variable being populated.  However, when passed in as one of the parameters to the setRequestHeader method, it is behaving like it's "empty".

Any thoughts?