This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257262 - NullPointerException at org.netbeans.modules.findbugs.options.FindBugsPanel.store
Summary: NullPointerException at org.netbeans.modules.findbugs.options.FindBugsPanel.s...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-22 17:05 UTC by shaikhtalal
Modified: 2018-03-26 14:11 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213304


Attachments
stacktrace (1.12 KB, text/plain)
2015-12-22 17:05 UTC, shaikhtalal
Details
stacktrace (1.12 KB, text/plain)
2016-01-05 00:26 UTC, emiddio
Details
stacktrace (4.87 KB, text/plain)
2018-03-26 14:11 UTC, michbarsinai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shaikhtalal 2015-12-22 17:05:14 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 8

User Comments:
shaikhtalal: Some unknown exception have been found I dont know how to cover it.

GUEST: I cant enable the hint "Assign return value to new variable"...

GUEST: <Please provide a description of the problem or the steps to reproducesad

GUEST: prova

GUEST: <Please provide a description of the problem or the steps to reproduce>
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entryorder;

import java.util.Scanner;


        
/**
 * 
 * @author willi_000
 */
public class EntryOrder {
    private static Product Product;
    private static String totalSales;
    private static int salesCount;
  
    

    /**
     * @param args the command line arguments
     */
    public static void calculateAverageSales(){
        
    }
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner (System.in);
          String productName;
          double productPrice = 0;
          String productID;
          
        System.out.println("What is the Product Name?");
        productName = sc.next();
        
        productID = sc.next ();

GUEST: I ctrl+clicked on @Mocked annotation




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.findbugs.options.FindBugsPanel.store(FindBugsPanel.java:438)
   at org.netbeans.modules.findbugs.options.FindBugsOptionsPanelController.applyChanges(FindBugsOptionsPanelController.java:92)
   at org.netbeans.modules.options.editor.FolderBasedController.applyChanges(FolderBasedController.java:164)
   at org.netbeans.modules.options.TabbedController.applyChanges(TabbedController.java:134)
   at org.netbeans.modules.options.CategoryModel$Category.applyChanges(CategoryModel.java:401)
   at org.netbeans.modules.options.CategoryModel$Category.access$1100(CategoryModel.java:326)
Comment 1 shaikhtalal 2015-12-22 17:05:16 UTC
Created attachment 157892 [details]
stacktrace
Comment 2 emiddio 2016-01-05 00:26:03 UTC
Created attachment 158000 [details]
stacktrace

unknown
Comment 3 michbarsinai 2018-03-26 14:11:47 UTC
Created attachment 165689 [details]
stacktrace

Changed the Fonts & Colors profile (from Earth to Darcula).