minor updates to adaptor examples
diff --git a/src/com/google/enterprise/adaptor/examples/DbAdaptorTemplate.java b/src/com/google/enterprise/adaptor/examples/DbAdaptorTemplate.java
index 2e83c2f..f03f6c6 100644
--- a/src/com/google/enterprise/adaptor/examples/DbAdaptorTemplate.java
+++ b/src/com/google/enterprise/adaptor/examples/DbAdaptorTemplate.java
@@ -92,7 +92,14 @@
     Connection conn = null;
     try {
       conn = makeNewConnection();
-      String query = "select * from backlog where id = " + id.getUniqueId();
+      int primaryKey;
+      try {
+        primaryKey = Integer.parseInt(id.getUniqueId());
+      } catch (NumberFormatException nfe) {
+        resp.respondNotFound();
+        return;
+      }
+      String query = "select * from backlog where id = " + primaryKey;
       ResultSet rs = getFromDb(conn, query);
 
       // First handle cases with no data to return.
diff --git a/src/com/google/enterprise/adaptor/examples/FileSystemAdaptor.java b/src/com/google/enterprise/adaptor/examples/FileSystemAdaptor.java
index d949c41..8498376 100644
--- a/src/com/google/enterprise/adaptor/examples/FileSystemAdaptor.java
+++ b/src/com/google/enterprise/adaptor/examples/FileSystemAdaptor.java
@@ -58,7 +58,7 @@
 
   @Override
   public void getDocIds(DocIdPusher pusher) throws IOException,
-         InterruptedException {
+      InterruptedException {
     ArrayList<DocId> mockDocIds = new ArrayList<DocId>();
     String parent = serveDir.toString();
     try {