git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
80f46a9
)
avoid null pointer exceptions
author
jprocter
<Jim Procter>
Mon, 21 Aug 2006 12:42:25 +0000
(12:42 +0000)
committer
jprocter
<Jim Procter>
Mon, 21 Aug 2006 12:42:25 +0000
(12:42 +0000)
src/jalview/ws/WSThread.java
patch
|
blob
|
history
diff --git
a/src/jalview/ws/WSThread.java
b/src/jalview/ws/WSThread.java
index
4c29537
..
ba82848
100644
(file)
--- a/
src/jalview/ws/WSThread.java
+++ b/
src/jalview/ws/WSThread.java
@@
-12,9
+12,9
@@
public abstract class WSThread extends Thread
/**
* Generic properties for Web Service Client threads.
*/
/**
* Generic properties for Web Service Client threads.
*/
- AlignFrame alignFrame;
+ AlignFrame alignFrame=null;
WebserviceInfo wsInfo = null;
WebserviceInfo wsInfo = null;
- AlignmentView input;
+ AlignmentView input=null;
boolean jobComplete = false;
abstract class WSJob {
/**
boolean jobComplete = false;
abstract class WSJob {
/**
@@
-239,9
+239,11
@@
public abstract class WSThread extends Thread
// System.out.println("I'm alive "+alTitle);
}
}
// System.out.println("I'm alive "+alTitle);
}
}
- if (jobComplete)
+ if (jobComplete && jobs!=null)
{
parseResult(); // tidy up and make results available to user
{
parseResult(); // tidy up and make results available to user
+ } else {
+ Cache.log.debug("WebServiceJob poll loop finished with no jobs created.");
}
}
abstract void StartJob(WSJob job);
}
}
abstract void StartJob(WSJob job);