我在Linux服务器上用BufferedImage.getGraphics()得到的Graphics对象是null。但是在本地调试一点问题都没有。具体代码如下:BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics g = image.getGraphics(); 我在Graphics g = image.getGraphics();上抛出异常,异常显示null,这是