{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/concierge/issues/59","repository_url":"https://api.github.com/repos/eclipse/concierge","labels_url":"https://api.github.com/repos/eclipse/concierge/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/concierge/issues/59/comments","events_url":"https://api.github.com/repos/eclipse/concierge/issues/59/events","html_url":"https://github.com/eclipse/concierge/issues/59","id":364871396,"node_id":"MDU6SXNzdWUzNjQ4NzEzOTY=","number":59,"title":"PackageAdminImpl.isFragment throws NullPointerException","user":{"login":"svilenvul","id":7120104,"node_id":"MDQ6VXNlcjcxMjAxMDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7120104?v=4","gravatar_id":"","url":"https://api.github.com/users/svilenvul","html_url":"https://github.com/svilenvul","followers_url":"https://api.github.com/users/svilenvul/followers","following_url":"https://api.github.com/users/svilenvul/following{/other_user}","gists_url":"https://api.github.com/users/svilenvul/gists{/gist_id}","starred_url":"https://api.github.com/users/svilenvul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svilenvul/subscriptions","organizations_url":"https://api.github.com/users/svilenvul/orgs","repos_url":"https://api.github.com/users/svilenvul/repos","events_url":"https://api.github.com/users/svilenvul/events{/privacy}","received_events_url":"https://api.github.com/users/svilenvul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T12:38:27Z","updated_at":"2018-09-28T12:38:27Z","closed_at":null,"author_association":"NONE","body":"I have confirmed that the exception is still there with the latest Concierge snapshot that I could find - 5.1.0.SNAPSHOT-20180523024817.\r\n\r\nThe scenario is following:\r\n\r\n- I trigger uninstallation of OSGi Deployment Package;\r\n- Bundle Tracker is notified about the removed bundle and checks if the bundle is a fragment;\r\n- NullPointerException occurs.\r\n\r\nThe `test-ext` deployment package contains a single bundle, which is not a fragment.\r\n\r\nLogs:\r\n\r\n```\r\nConcierge> 13:28:56.638 ERROR org.eclipse.kura.deployment.agent.impl.DeploymentAgent[:360] - Exception uninstalling package test-ext\r\njava.lang.NullPointerException: null\r\n\tat org.eclipse.concierge.compat.packageadmin.PackageAdminImpl.isFragment(PackageAdminImpl.java:374)\r\n\tat org.eclipse.concierge.compat.packageadmin.PackageAdminImpl.getBundleType(PackageAdminImpl.java:370)\r\n\tat org.eclipse.smarthome.core.internal.i18n.ResourceBundleTracker.isFragmentBundle(ResourceBundleTracker.java:144)\r\n\tat org.eclipse.smarthome.core.internal.i18n.ResourceBundleTracker.removedBundle(ResourceBundleTracker.java:85)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:491)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:414)\r\n\tat org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)\r\n\tat org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:449)\r\n\tat org.eclipse.concierge.Concierge.notifyBundleListeners(Concierge.java:3697)\r\n\tat org.eclipse.concierge.Concierge.notifyBundleListeners(Concierge.java:3632)\r\n\tat org.eclipse.concierge.BundleImpl.uninstall(BundleImpl.java:780)\r\n\tat org.apache.felix.deploymentadmin.spi.DropAllBundlesCommand.execute(DropAllBundlesCommand.java:48)\r\n\tat org.apache.felix.deploymentadmin.spi.DeploymentSessionImpl.call(DeploymentSessionImpl.java:73)\r\n\tat org.apache.felix.deploymentadmin.DeploymentAdminImpl.uninstallDeploymentPackage(DeploymentAdminImpl.java:352)\r\n\tat org.apache.felix.deploymentadmin.AbstractDeploymentPackage.uninstall(AbstractDeploymentPackage.java:296)\r\n\tat org.eclipse.kura.deployment.agent.impl.DeploymentAgent.uninstaller(DeploymentAgent.java:347)\r\n\tat org.eclipse.kura.deployment.agent.impl.DeploymentAgent.lambda$1(DeploymentAgent.java:178)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n\r\n```\r\n\r\nI would really appreciate your assistance with this issue, please let me know if you need additional information."}}
{"actor":{"display_login":"svilenvul"}}