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

Summary: NullPointerException at org.netbeans.modules.findbugs.options.FindBugsPanel.store
Product: java Reporter: shaikhtalal
Component: FindBugsAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal CC: dvader666, emiddio, michbarsinai
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 213304
Attachments: stacktrace
stacktrace
stacktrace

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).