[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: AW: [geclipse-dev] Null pointer exception in WMSClient
|
On Thu, 17 Jul 2008, Stuempert, Mathias IWR wrote:
Hi Romain,
It seems that getProject might return null :
[...]
So i guess, that's a bug :)
Not necessarily. As we all know you are trying to get rid of the
workspace. So this may be related to the NPE. It would be interesting to
see how your JSDL is created. Could you provide us with the
corresponding source code?
But it is a bug anyway. :)
If JSDL can return null (and even gently says in java doc) then I need to
check if project==null. If yes, I can throw Exception.
But having method for submission of JSDL created manually (and maybe not
in any project) is not a bad idea.
Probably it will look like:
public JobIdStructType submitJob( final JSDLJobDescription jsdl,
string vo,
final IProgressMonitor monitor )
Then the same JSDL (e.g. test template) can be used to submit job to
different vos.
Regards,
Pawel