Skip to content

Commit

Permalink
Fix for NullPointerException thrown durin isSetup() invocation.
Browse files Browse the repository at this point in the history
Also modified the signature of the implemented method as per the
new API.
  • Loading branch information
VineetReynolds committed May 9, 2014
1 parent 91be3e0 commit d9e627a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ public List<Resource<?>> setup(Project project, ScaffoldSetupContext setupContex

@Override
@SuppressWarnings("unchecked")
public boolean isSetup(ScaffoldSetupContext setupContext)
public boolean isSetup(Project project, ScaffoldSetupContext setupContext)
{
String targetDir = setupContext.getTargetDirectory();
targetDir = targetDir == null ? "" : targetDir;
if (project.hasAllFacets(WebResourcesFacet.class, DependencyFacet.class, JPAFacet.class, EJBFacet.class,
CDIFacet.class, RestFacet.class))
{
WebResourcesFacet web = this.project.getFacet(WebResourcesFacet.class);
WebResourcesFacet web = project.getFacet(WebResourcesFacet.class);
boolean areResourcesInstalled = web.getWebResource(targetDir + GLYPHICONS_SVG).exists()
&& web.getWebResource(targetDir + GLYPHICONS_EOT).exists()
&& web.getWebResource(targetDir + GLYPHICONS_SVG).exists()
Expand Down

0 comments on commit d9e627a

Please sign in to comment.