Fixed NPE problem when deleting a stock after opening stock operations
activity