
findbugs - issue #33
Method call in run() passes null for nonnull parameter of MainFrame.access$3700(MainFrame, Project, BugCollection) in MainFrame.java
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
Comment #1
Posted on Feb 24, 2010 by Happy Giraffe(No comment was entered for this change.)
Status: Invalid
Labels:
FindBugsGenerated