Erro de Null pointer

Boa tarde meus colegas. sou iniciante em java e estou desenvolvendo uma tarefa academica onde preciso criar um sisteminha de locação de veiculos. Já dei uma andada porém travei na parte de vincular a chave estrangeira da filial que esta logada com o veiculo a ser cadastrado segue o meu racicionio

dao
criei esse metodo updateid para passar o id da filial logada para chave estrangeira do veiculo a ser criado

controller

package voceAluga.controller;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import voceAluga.dao.FilialDAO;
import voceAluga.dao.VeiculoDAO;
import voceAluga.dao.conexao;
import voceAluga.model.Filial;
import voceAluga.model.Veiculo;
import voceAluga.view.TelaCadastroVeiculo;
import voceAluga.view.TelaLogin3;
import voceAluga.view.TelaPrincipalGerente;

/*
 * 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.
 */

public class veiculoController {
    private TelaLogin3 view2;
    private TelaCadastroVeiculo view1;
    public veiculoController(TelaCadastroVeiculo view1) {
        this.view1 = view1;
    }
    public veiculoController(TelaLogin3 view2) {
        this.view2 = view2;
    }
    public void insere() throws SQLException {
        String modelo = view1.getjTextFieldModelo().getText();
        String cor = view1.getjTextFieldCor().getText();
        int qtdLugares = Integer.parseInt(view1.getjTextFieldqtdLugares().getText());
        String fabricante = view1.getjTextFieldFabricante().getText();
        String placa = view1.getjTextFieldPlaca().getText();
        Filial idFilial =null;
        double valorDiaria = Double.parseDouble(view1.getjTextFieldValorDiaria().getText()) ;
        Veiculo veiculoInsert = new Veiculo(modelo,cor,qtdLugares,fabricante,placa,idFilial,valorDiaria);
        // verificar se existe no Banco de dados
        try{
        Connection conexao = new conexao().getConnection();
        VeiculoDAO veiculoDao = new VeiculoDAO(conexao);
        veiculoDao.insert(veiculoInsert);
        JOptionPane.showMessageDialog(null,"Veiculo Cadastrado com sucesso!!!");
        }catch(SQLException ex) {
            JOptionPane.showMessageDialog(null,"Erro ao cadastrar veiculo!!!");
            Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        }
    public void updateid() throws SQLException{
        String usuario2 = view2.getjTextFieldUsuario().getText();
        String senha2 = view2.getjPasswordFieldSenha().getText(); //"admin";
        Filial usuarioAutenticado = new Filial(usuario2,senha2);
        // verificar se existe no Banco de dados
        try{    
        Connection conexao = new conexao().getConnection();
        FilialDAO filialDao = new FilialDAO(conexao);
        filialDao.updateid(usuarioAutenticado);
        }catch(SQLException ex) {
            JOptionPane.showMessageDialog(null,"Erro ao cadastrar veiculo!!!");
            Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(Level.SEVERE, null, ex);
        }
    
    }
    }

view
a ideia é que ao clicar em salvar primeiro ele faça a inserção do veiculo no banco e depois com a updateid ele coloque o id da filial no lugar da fk

package voceAluga.view;

import javax.swing.JTextField;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFormattedTextField;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import voceAluga.controller.idController;
import voceAluga.controller.veiculoController;
import voceAluga.view.TelaLogin3;
/**
 *
 * @author Rhuan
 */
public class TelaCadastroVeiculo extends javax.swing.JFrame {
    private final veiculoController controller;
    /**
     * Creates new form TelaCadastroVeiculo
     */
    public TelaCadastroVeiculo() {
        initComponents();
        controller = new veiculoController(this);
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        jLabelTitulo = new javax.swing.JLabel();
        jPanelCadstroVeiculo = new javax.swing.JPanel();
        jLabelModelo = new javax.swing.JLabel();
        jTextFieldModelo = new javax.swing.JTextField();
        jLabelCor = new javax.swing.JLabel();
        jLabelqtdLugares = new javax.swing.JLabel();
        jLabelFabricante = new javax.swing.JLabel();
        jLabelPlaca = new javax.swing.JLabel();
        jTextFieldCor = new javax.swing.JTextField();
        jTextFieldqtdLugares = new javax.swing.JTextField();
        jTextFieldFabricante = new javax.swing.JTextField();
        jTextFieldPlaca = new javax.swing.JTextField();
        jButtonSalvar = new javax.swing.JButton();
        jButtonLimpar = new javax.swing.JButton();
        jButtonCancelar = new javax.swing.JButton();
        jButtonConsultar = new javax.swing.JButton();
        jLabelValorDiaria = new javax.swing.JLabel();
        jTextFieldValorDiaria = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Cadastro Veiculo");
        setResizable(false);

        jLabelTitulo.setFont(new java.awt.Font("Calibri", 1, 24)); // NOI18N
        jLabelTitulo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/car.png"))); // NOI18N
        jLabelTitulo.setText("Cadastro De Veículo");

        jPanelCadstroVeiculo.setBackground(new java.awt.Color(102, 102, 102));
        jPanelCadstroVeiculo.setPreferredSize(new java.awt.Dimension(780, 400));

        jLabelModelo.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelModelo.setForeground(new java.awt.Color(255, 255, 255));
        jLabelModelo.setText("Modelo:");

        jTextFieldModelo.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        jTextFieldModelo.setToolTipText("Informe o modelo");

        jLabelCor.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelCor.setForeground(new java.awt.Color(255, 255, 255));
        jLabelCor.setText("Cor:");

        jLabelqtdLugares.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelqtdLugares.setForeground(new java.awt.Color(255, 255, 255));
        jLabelqtdLugares.setText("Quantidade de Lugares:");

        jLabelFabricante.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelFabricante.setForeground(new java.awt.Color(255, 255, 255));
        jLabelFabricante.setText("Fabricante:");

        jLabelPlaca.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelPlaca.setForeground(new java.awt.Color(255, 255, 255));
        jLabelPlaca.setText("Placa:");

        jTextFieldCor.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        jTextFieldCor.setToolTipText("Informe a Cor");

        jTextFieldqtdLugares.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        jTextFieldqtdLugares.setToolTipText("Informe a quantidade de lugares");

        jTextFieldFabricante.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        jTextFieldFabricante.setToolTipText("Informe o Fabricante");

        jTextFieldPlaca.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        jTextFieldPlaca.setToolTipText("Informe a placa");

        jButtonSalvar.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jButtonSalvar.setText("Salvar");
        jButtonSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSalvarActionPerformed(evt);
            }
        });

        jButtonLimpar.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jButtonLimpar.setText("Limpar");

        jButtonCancelar.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jButtonCancelar.setText("Cancelar");

        jButtonConsultar.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jButtonConsultar.setText("Consultar");

        jLabelValorDiaria.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
        jLabelValorDiaria.setForeground(new java.awt.Color(255, 255, 255));
        jLabelValorDiaria.setText("Valor da diária:");

        jTextFieldValorDiaria.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N

        javax.swing.GroupLayout jPanelCadstroVeiculoLayout = new javax.swing.GroupLayout(jPanelCadstroVeiculo);
        jPanelCadstroVeiculo.setLayout(jPanelCadstroVeiculoLayout);
        jPanelCadstroVeiculoLayout.setHorizontalGroup(
            jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                        .addGap(98, 98, 98)
                        .addComponent(jButtonSalvar)
                        .addGap(95, 95, 95)
                        .addComponent(jButtonLimpar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 155, Short.MAX_VALUE)
                        .addComponent(jButtonCancelar)
                        .addGap(90, 90, 90)
                        .addComponent(jButtonConsultar))
                    .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelCor)
                                    .addComponent(jLabelModelo))
                                .addGap(29, 29, 29)
                                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldCor, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE)
                                    .addComponent(jTextFieldModelo)))
                            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                                .addComponent(jLabelqtdLugares)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTextFieldqtdLugares, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                                .addComponent(jLabelValorDiaria)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTextFieldValorDiaria, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelFabricante)
                                    .addComponent(jLabelPlaca))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldFabricante, javax.swing.GroupLayout.DEFAULT_SIZE, 606, Short.MAX_VALUE)
                                    .addComponent(jTextFieldPlaca))))
                        .addGap(69, 69, 69)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelCadstroVeiculoLayout.setVerticalGroup(
            jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCadstroVeiculoLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelModelo)
                    .addComponent(jTextFieldModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCor)
                    .addComponent(jTextFieldCor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelqtdLugares)
                    .addComponent(jTextFieldqtdLugares, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFabricante)
                    .addComponent(jTextFieldFabricante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPlaca)
                    .addComponent(jTextFieldPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelValorDiaria)
                    .addComponent(jTextFieldValorDiaria, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addGroup(jPanelCadstroVeiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSalvar)
                    .addComponent(jButtonLimpar)
                    .addComponent(jButtonCancelar)
                    .addComponent(jButtonConsultar))
                .addContainerGap(70, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(259, 259, 259)
                .addComponent(jLabelTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelCadstroVeiculo, javax.swing.GroupLayout.DEFAULT_SIZE, 808, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(59, 59, 59)
                .addComponent(jLabelTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelCadstroVeiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 405, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(63, Short.MAX_VALUE))
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>                        

    private void jButtonSalvarActionPerformed(java.awt.event.ActionEvent evt) {                                              
        try {
            controller.insere();
            controller.updateid();
        } catch (SQLException ex) {
            Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(Level.SEVERE, null, ex);
        }
    }                                             

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaCadastroVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaCadastroVeiculo().setVisible(true);
            }
        });
    }
    public JTextField getjTextFieldCor() {
        return jTextFieldCor;
    }

    public void setjTextFieldCor(JTextField jTextFieldCor) {
        this.jTextFieldCor = jTextFieldCor;
    }

    public JTextField getjTextFieldFabricante() {
        return jTextFieldFabricante;
    }

    public void setjTextFieldFabricante(JTextField jTextFieldFabricante) {
        this.jTextFieldFabricante = jTextFieldFabricante;
    }

    public JTextField getjTextFieldModelo() {
        return jTextFieldModelo;
    }

    public void setjTextFieldModelo(JTextField jTextFieldModelo) {
        this.jTextFieldModelo = jTextFieldModelo;
    }

    public JTextField getjTextFieldPlaca() {
        return jTextFieldPlaca;
    }

    public void setjTextFieldPlaca(JTextField jTextFieldPlaca) {
        this.jTextFieldPlaca = jTextFieldPlaca;
    }

    public JTextField getjTextFieldValorDiaria() {
        return jTextFieldValorDiaria;
    }

    public void setjTextFieldValorDiaria(JTextField jTextFieldValorDiaria) {
        this.jTextFieldValorDiaria = jTextFieldValorDiaria;
    }

    public JTextField getjTextFieldqtdLugares() {
        return jTextFieldqtdLugares;
    }

    public void setjTextFieldqtdLugares(JTextField jTextFieldqtdLugares) {
        this.jTextFieldqtdLugares = jTextFieldqtdLugares;
    }
    
    // Variables declaration - do not modify                     
    private javax.swing.JButton jButtonCancelar;
    private javax.swing.JButton jButtonConsultar;
    private javax.swing.JButton jButtonLimpar;
    private javax.swing.JButton jButtonSalvar;
    private javax.swing.JLabel jLabelCor;
    private javax.swing.JLabel jLabelFabricante;
    private javax.swing.JLabel jLabelModelo;
    private javax.swing.JLabel jLabelPlaca;
    private javax.swing.JLabel jLabelTitulo;
    private javax.swing.JLabel jLabelValorDiaria;
    private javax.swing.JLabel jLabelqtdLugares;
    private javax.swing.JPanel jPanelCadstroVeiculo;
    private javax.swing.JTextField jTextFieldCor;
    private javax.swing.JTextField jTextFieldFabricante;
    private javax.swing.JTextField jTextFieldModelo;
    private javax.swing.JTextField jTextFieldPlaca;
    private javax.swing.JTextField jTextFieldValorDiaria;
    private javax.swing.JTextField jTextFieldqtdLugares;
    // End of variables declaration                   
}

porém ao executar ele retorna o seguinte erro
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: Cannot invoke “voceAluga.view.TelaLogin3.getjTextFieldUsuario()” because “this.view2” is null
at voceAluga.controller.veiculoController.updateid(veiculoController.java:53)
at voceAluga.view.TelaCadastroVeiculo.jButtonSalvarActionPerformed(TelaCadastroVeiculo.java:240)
at voceAluga.view.TelaCadastroVeiculo$1.actionPerformed(TelaCadastroVeiculo.java:110)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6617)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6382)
at java.desktop/java.awt.Container.processEvent(Container.java:2264)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4993)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2322)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4934)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4563)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4504)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2308)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Se alguém puder me ajudar a resolver ficarei grato obrigado!!

Na verdade seu problema não tem a ver com as operações no banco. Você esqueceu de inicializar esse atributo no seu controller:

então quando ele tenta dar um update usando esse objeto, ele levanta esse null pointer.

O problema é que não tem nenhum objeto sendo referenciado pela variável view2.
Você não inicializou essa variável.