tyutNo4 / findbugs

Automatically exported from code.google.com/p/findbugs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method call in run() passes null for nonnull parameter of MainFrame.access$3700(MainFrame, Project, BugCollection) in MainFrame.java

GoogleCodeExporter opened this issue · comments

Bug report generated from FindBugs
Method call in run() passes null for nonnull parameter of 
MainFrame.access$3700(MainFrame, Project, BugCollection)

In class edu.umd.cs.findbugs.gui2.MainFrame$46
  In method run()
  Called method MainFrame.access$3700(MainFrame, Project, BugCollection)
  Argument 2 might be null but must not be null
  Value loaded from project
  Method invoked at MainFrame.java:[line 3019]
  Known null at MainFrame.java:[line 3017]
This issue found by FindBugs


Relevant source code:
 3013:   Runnable runnable = new Runnable(){
 3014:      public void run()
 3015:      {
 3016:          final Project  project = BugLoader.loadProject(MainFrame.this, f);
 3017:          final BugCollection  bc = project == null ? null : BugLoader.doAnalysis(project);
 3018:          updateProjectAndBugCollection(project, bc, null);
 3019:          setProjectAndBugCollectionInSwingThread(project, bc);
 3020:      }
 3021:   };
 3022:   if (EventQueue.isDispatchThread())
 3023:      new Thread(runnable).start();

Bug pattern explanation:
This method call passes a null value for a nonnull method parameter. Either 
the parameter is annotated as a parameter that should always be nonnull, or 
analysis has shown that it will always be dereferenced.



FindBugs issue identifier (do not modify or remove): 
7573075c2a196813967a3e4cab84bb83

Original issue reported on code.google.com by bill.p...@gmail.com on 19 Feb 2010 at 6:41

Original comment by keithl on 24 Feb 2010 at 1:52

  • Changed state: Invalid