I'm going to add a commit to change this to:

      if (sharedLib != null) {