[Swift-commit] r6837 - trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Mon Aug 12 23:31:15 CDT 2013
Author: hategan
Date: 2013-08-12 23:31:14 -0500 (Mon, 12 Aug 2013)
New Revision: 6837
Modified:
trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/WorkerTerminalInputHandler.java
Log:
make sure the security context is not null before attempting to access its credential
Modified: trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/WorkerTerminalInputHandler.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/WorkerTerminalInputHandler.java 2013-08-13 01:01:24 UTC (rev 6836)
+++ trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/WorkerTerminalInputHandler.java 2013-08-13 04:31:14 UTC (rev 6837)
@@ -23,6 +23,7 @@
import org.apache.log4j.Logger;
import org.globus.cog.abstraction.coaster.service.local.LocalRequestManager;
import org.globus.cog.abstraction.impl.execution.coaster.WorkerShellCommand;
+import org.globus.cog.abstraction.interfaces.SecurityContext;
import org.globus.cog.abstraction.interfaces.Service;
import org.globus.cog.abstraction.interfaces.Task;
import org.globus.cog.coaster.ProtocolException;
@@ -54,8 +55,10 @@
if (this.contact == null) {
this.contact = task.getService(0).getServiceContact().getContact();
}
- this.cred = (GSSCredential) task.getService(0).getSecurityContext()
- .getCredentials();
+ SecurityContext sc = task.getService(0).getSecurityContext();
+ if (sc != null) {
+ this.cred = (GSSCredential) sc.getCredentials();
+ }
}
public void handleInput(String in) {
More information about the Swift-commit
mailing list