Skip to content

Commit

Permalink
Fixed a silly mistake - open tracker before use, not afterwards...
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrzewski committed Mar 2, 2012
1 parent 0f573e6 commit 79c1e06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public void start(BundleContext context) throws Exception {
PostgreSQLServiceProperties.DRIVER_NAME);
props.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS,
PostgreSQLServiceProperties.DRIVER_CLASS);
Bundle driverBundle = findProviderOfPackage(context,
PostgreSQLServiceProperties.DRIVER_PACKAGE);
packageAdminTracker = new ServiceTracker(context,
PackageAdmin.class.getName(), null);
packageAdminTracker.open();
Bundle driverBundle = findProviderOfPackage(context,
PostgreSQLServiceProperties.DRIVER_PACKAGE);
if (driverBundle != null) {
props.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, driverBundle
.getVersion().toString());
Expand Down

0 comments on commit 79c1e06

Please sign in to comment.