vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

BundleUpdater threw an NPE #284

Closed reprogrammer closed 13 years ago

reprogrammer commented 13 years ago

I got the following exception when pushed the "Upload Now" button on the preference page.

eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.rcp.product
Command-line arguments:  -product org.eclipse.epp.package.rcp.product -data ../CodingSpectatorRuntime -dev file:.metadata/.plugins/org.eclipse.pde.core/CodingSpectator/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog

Error
Sat Jul 16 22:32:07 CDT 2011
Problems occurred when invoking code from plug-in: "edu.illinois.codingspectator.monitor.ui".

java.lang.NullPointerException
    at edu.illinois.bundleupdater.BundleUpdater.checkForUpdates(BundleUpdater.java:80)
    at edu.illinois.codingspectator.monitor.ui.updates.Updater.postSubmit(Updater.java:33)
    at edu.illinois.codingspectator.monitor.ui.submission.Submitter$3.run(Submitter.java:167)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at edu.illinois.codingspectator.monitor.ui.submission.Submitter.notifyPostSubmit(Submitter.java:163)
    at edu.illinois.codingspectator.monitor.ui.submission.Submitter.submit(Submitter.java:109)
    at edu.illinois.codingspectator.monitor.ui.Uploader$1.run(Uploader.java:56)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
reprogrammer commented 13 years ago

BundleUpdater threw an NPE because no profile is available in the development mode of Eclipse. Commit beb137fe09e4a6fb4d0d8601a8c6cb04b0838909 reports NPE's of BundleUpdater to the error log. I tested the new BundleUpdater on Helios and Indigo and made sure that it worked.