[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Thu Jul 15 20:20:37 UTC 2004


gss
Thu Jul 15 16:20:37 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients
In directory pub.open-bio.org:/tmp/cvs-serv11988/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients

Modified Files:
	SimpleProviderEngagerPanel.java 
Log Message:
Minor fixes

moby-live/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients SimpleProviderEngagerPanel.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients/SimpleProviderEngagerPanel.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients/SimpleProviderEngagerPanel.java	2004/05/27 19:37:10	1.1
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/example-clients/SimpleEngager/src/org/smoby/exampleclients/SimpleProviderEngagerPanel.java	2004/07/15 20:20:37	1.2
@@ -113,11 +113,19 @@
 		{
 		    Parser parser = Parser.forString(graphString, Parser.LANGUAGE_RDF_XML);
 		    MOBYProvider provider = parser.parseProvider();
-			String graphURI = provider.getURI();
-			HTTPRequest request = HTTPRequest.newPostRequest(graphURI);
-			request.addParameter("graph", graphString);
-			HTTPResponse response = request.send();
-			outputArea.setText(response.getBody());
+		    
+		    if (provider == null)
+		    {
+		    	outputArea.setText("Couldn't parse provider");
+		    }
+		    else
+		    {
+				String graphURI = provider.getURI();
+				HTTPRequest request = HTTPRequest.newPostRequest(graphURI);
+				request.addParameter("graph", graphString);
+				HTTPResponse response = request.send();
+				outputArea.setText(response.getBody());
+		    }
 		}
 		catch (UnparsableGraphException e)
 		{




More information about the MOBY-guts mailing list