Database management was changed, now it opens the database and it closes it every...
[RRRRHHHH_Code] / ruralHouses / src / gui / BookRuralHouseGUI.java
index fead030..eadd8b0 100644 (file)
@@ -136,8 +136,8 @@ public class BookRuralHouseGUI extends JFrame {
                                        ApplicationFacadeInterface facade=StartWindow.getBusinessLogic();
 
                                        Booking book=facade.createBooking(house, firstDay, lastDay, telephone);
-                                       System.out.println(book.getPrice());
                                        if (book!=null) {
+                                               System.out.println(book.getPrice());
                                                BookRuralHouseConfirmationWindow confirmWindow=new BookRuralHouseConfirmationWindow(book);
                                                confirmWindow.setVisible(true);
                                        }